QScrollArea: Scroll from item to item

Please consider the following code: from PyQt5.QtWidgets import * from PyQt5.QtGui import * from PyQt5.QtCore import * class Gallery(QScrollArea): def __init__(self, *args, **kwargs): …

How to update PyQt progressbar from an independent function with arguments?

I want to use multiple imported function with arguments that takes some while to run. I want a ‘working’ progress bar that track the processes of that function. I have followed 2 questions already …

How to filter executables using QFileDialog? (Cross-platform solution)

The documentation for QFileDialog.getOpenFileName does not provide any clue on how to filter only executables using a const QString &filter = QString(). Here’s the code for my action using PyQt5: …

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 …

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 …

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 …