PYQT QTimer does not start

I am using PyQt 5 for a GUI app, and I am having a threading issue. There is a close button and once it is clidked, a QTimer starts and then it waits in a while loop that is conditioned on a value of …

Multithreading updating with multiple windows in pyqt5

I’m trying to have a timer going that I can use to update values in multiple windows with pyqt5. What I have so far, the main window opens with buttons to open the other windows, but when I press …

Process finished with exit code -1073740791 (0xC0000409) error not opening a website

I am creating a desktop app using PyQt5 and QtDesginer. I have a login page connected to a database, and the user is asked to enter username and password. In the designer, I created a window that …

Continuous saving files to directory after manual removal of them

I created a GUI project in pyqt5 that lets us enter a country’s name in the text input field, then we are getting data from the CoVid-19 API for the particular country. I added a feature (button) …

PyQt5: Python crashes with SIGSEGV *sometimes* when sending pixmap via a signal from another thread

Background and Issue I am trying to process streaming data from a camera. Python keeps crashing with this message though: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) The …

How do I access the value from a QLineEdit?

How do I get and store the value that is written in a QLineEdit as well as close the widget after I click save? I have looked over the PyQt5 documentation and it says the function .text() will give …

Drawing straight line between two points using QPainterPath

I have a scene where I would like to draw a line between two points(mouse press should be the start point and mouse release as the endpoint) using the QPainterpath. Here is a demonstration of how I …

PyQt5 – fromIccProfile: failed minimal tag size sanity error

I’m using latest PyQt5 5.12.2 and I’m getting a weird message for every JPG picture that I’m showing in my script using QPixmap or QIcon. qt.gui.icc: fromIccProfile: failed minimal tag size sanity It …

How to move rect in pyqtgraph

I try to have a rect which moves with the mouse pointer. However, I seem to have a problem with calling the paint method. It either doesn’t draw or creates artifacts. The only clean picture I get is …

PyQt5: How do I “collect” or “receive” an emitted signal?

In my code, I have 2 classes in 2 separate files. I have a signal testSignal, a button pushButton and I connected the button like this: testSignal = QtCore.pyqtSignal() pushButton.pressed.connect(…