Questions tagged [pyqt5]
Qt 5 bindings for Python programming. This allows programmer to make Qt 5 graphical user interfaces using Python syntax.
pyqt5
14,815
questions
0
votes
0
answers
29
views
Applications packaged with nuitka cannot run
I am using Nuitka to package my PyQt5 application and running it in source code without any exceptions. But running after packaging will report an error:
📢 Tips: QFluentWidgets Pro is now released. ...
0
votes
0
answers
48
views
How do I know what a pyqtSignal will pass to a pyqtSlot?
I am going through the Qt doc page on Mode-View architecture and while trying to reproduce the usage of model indexes in PyQt5 I got to a working script that I don't fully understand. Here's the code:
...
-1
votes
1
answer
41
views
Python 3 - ModuleNotFoundError: No module named 'PyQt5' [closed]
I have installed pyQt5 using pip install pyqt5.
However when I open my test code:
import sys
from PyQt5 import QtWidgets, QtCore
It is coming up with the error message:
Traceback (most recent ...
1
vote
1
answer
74
views
Unable to alter the text color within a QTableWidget
I wrote a complex program that utilizes a PyQt6 table. I encountered an issue where I was unable to alter the font color within the table. To troubleshoot, I created a smaller program (see below) that ...
0
votes
0
answers
43
views
Inaccurate Multiplanar Reconstruction (MPR) of CTs in My PyQt5 DICOM Viewer - Mild Horizontal Stretching
Question:
I'm developing a DICOM viewer application using PyQt5 that includes multiplanar reconstruction (MPR) similar to OsiriX/Horos. However, I'm encountering an issue where the images appear ...
1
vote
0
answers
42
views
How to setup light source position and shading: with Pyqtgraph: GLMeshItem?
I am using pyqtgraph.opengl for graphics and display of STL files on my UI. I am using phong shading technique called 'shaded' param with pyqtgraph.opengl.GLMeshItem API. But I am having a dark color ...
0
votes
0
answers
24
views
Synchronize splashscreen and main program
I'm using this piece of script to get a splash screen followed by the main program.
The splash screen works correctly: it shows the image for the set time after which it exits and the main screen ...
0
votes
0
answers
57
views
Using pyenv python inplace of system default
I am on archlinux and trying to run krita scripter (built-in python console) with a pyenv python version. The system default python version is 3.12, however the script I am running uses python ...
0
votes
0
answers
28
views
PyQt5 - How can I have scaling handles on the selected image [duplicate]
I'm trying to create a basic image viewer with just a few features.
Can add/remove images
Can move/drag images.
Can rotate images
Can scale images
I don't know how to add control handles around a ...
1
vote
1
answer
37
views
Why do the QGraphicsBlurEffect makes my QGraphicsView not work?
I am using the QGraphicsView widget on PyQt5 and I created some custom QGraphicsItems.
When I instantiate without any effect my items, I get this :
When I add those three lines :
blur = ...
0
votes
0
answers
29
views
Whenever i changing the widget i am facing the issue of delay in overall performance and user interface while using serial COM
I'm using this PyQt5 code on the Raspberry Pi 4.
When I run the code, I receive and plot analog values on the plot_widget via serial communication.
If I change the mode or widget, and then attach the ...
0
votes
0
answers
38
views
How to dynamically compose QtCore.Qt.MatchgFlag(s) together rather than hard-coding them
I am trying to write a small app to control FastAPI server's configuration, using a dictionary. Due to the fact that I am using a QTreeView, and would like to create a search box for entering text ...
0
votes
0
answers
32
views
Making a non-rectangular button in PyQt5
I'm making a GUI using PyQt5 where I have hexagonal cells that have a button that is part of a circle at some vertex. However, I can't find a way to make the clickable area of the button be the arc, ...
0
votes
0
answers
32
views
How to change background-color of QPushButton in PyQtDarkTheme
I'm trying to change the background-color of my QPushButtons in PyQtDarkTheme, but it just doesn't work.
My real project i'm working on.
I've tried it like this, changing the text-color or ...
0
votes
0
answers
71
views
PyQt5 QWebEngineView Not Displaying Web Pages correctly
I'm attempting to create a simple web browser using PyQt5 on Termux Kali Linux rootless, and I've encountered an issue where the QWebEngineView doesn't display web pages as expected. I've followed the ...