I need to be able to draw a circle/line on top of another widget, but every time I try, it goes behind. I have read lots of posts about using QPainter over widgets but I still can’t get it to work. The following is a minimal example of my app, and I just want to figure out where to put
Tag: pyqt5
python.exe: No module named pyuic5
I want to convert my .ui file to py but pyuic5 is not recognized And when i go to my python directory this error message appears how to fix this error? Answer A more generic option is:
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 here. Connect an imported function to Qt5 progress bar without dependencies Report progress to QProgressBar using variable from an imported module The difference is that the
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: On linux, naturally, I have no file extensions for executables, but I need to filter .exe extensions on windows (Which I intend to provide a version for). Also, there’s no
Why does QTableView have blank margins and how can I remove them?
The following PyQt program produces a window containing a QTableView with a margin space to its bottom and right (but not top and left) – even though the main-window is told to adjust itself to its contents size: I was expecting to see: If I increase the size of the window from the original position, I see: What is the
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 a variable in which is being incremented in the QTimer handler. The problem is that the
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 either button, it crashes. The number of threads is printed out. I have also tried putting in each AnotherWindow(2) init function,
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 opens a certain link. The following code is running. But when inserting it into the second code it gives Process finished with exit
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) which give us a possibility to save matplotlib’s plot with statistics from API to my folder called “stats”. Let’s assume that I enter
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: The crash happens sometimes while emitting the signal containing an image. My code, shown below, follows this process: A QObject named CameraThread is instantiated within the GUI and is run by a QThread. CameraThread instantiates a class IngestManager and gives