Questions tagged [pyqt5]
Qt 5 bindings for Python programming. This allows programmer to make Qt 5 graphical user interfaces using Python syntax.
pyqt5
14,823
questions
0
votes
1
answer
34
views
printing output of subprocess.Popen in a pyQt5 Widget (realtime)
I checked every post regarding this issue and I found either very old posts (2011) or posts with solutions not working or fitting.
My "only" wish is to bring the output of Popen to a ...
-3
votes
0
answers
12
views
Why is it not possible to use QGui instead of QWidget (I tried from QGIS and Spyder) in this case? [duplicate]
I want to use QtGui instead of QtWidget and I think it is not a deprecated module.
opcion = QMessageBox.question(None, 'choose an option', 'Yes or No', QMessageBox.Yes, QMessageBox.No)
if opcion == ...
-1
votes
0
answers
45
views
question regarding drawing squares on uploaded image
import sys
from PyQt5.QtGui import QPixmap, QPainter, QPen, QColor, QImage
from PyQt5.QtWidgets import (
QApplication,
QWidget,
QPushButton,
QLabel,
QVBoxLayout,
QHBoxLayout,
...
0
votes
1
answer
45
views
How do I change the font of label roles for the form layout in PyQt5? [duplicate]
I want all the text in a window I'm generating in PyQT5 to be courier. However, when I add rows to a form layout and add the label roles, these labels do not appear in courier. Here is my code:
self....
-1
votes
1
answer
49
views
Good practices on where to define the connection of custom Signals and Slots
When I emit a signal in script A and catch it script B to execute a slot there. Where should the mysignalA.connect(myslotB) go?
In script A as: self.mysignalA.connect(B.myslotB)
or in script B as: A....
0
votes
0
answers
37
views
Is it possible to add MainWindow in another widget in QtDesigner5?
In my scenario, I want to show the assembly code and some other states of each threads. I hope that they can own their Dock Widgets which hold the thread states.
Here is an example code generated by ...
0
votes
0
answers
18
views
some issues when i using easy_handeye to calibrate
I was looking for some advice from someone who was able to get package of easy_handey working with ROS Noetic, my virtual environment python version is 2.7.18.
The main issue I'm having is indirectly ...
0
votes
0
answers
29
views
pyqt5 bring the main window to the front
I made a GUI and used win10toast_click library to get an alarm. When I get an alarm, I want to click that alarm. And then I want to bring the main window to the front like you actually click that ...
1
vote
0
answers
24
views
PyQt5 Splitting One Large Widget into Multiple Smaller Widgets
I am having a hard time trying to understand how to break one large widget into multiple smaller nested widgets to make my widgets more portable. I am having difficulty getting things to display from ...
0
votes
0
answers
22
views
How can I check if a generated radio button is checked in PyQt5? [duplicate]
I'm creating a class roster with PyQt5.
I generated several radio buttons along with each student entry. I want to be able to check the radio button and click another button to delete the entry. I am ...
0
votes
0
answers
41
views
Error when downloading Python PyQt5-tools: can´t find wrapt module
I´m trying do download Python packages to be installed on another computer with no Internet access.
I could successfully download PyQt5 package, but I´m encountering an error when downloading PyQt5-...
0
votes
0
answers
47
views
PyQt application issue by changing Windows display scale, or in different resolutions
When changing the display scaling in Windows 11 from 100% to 125% or 150%, the PyQt5 application and its elements (labels, buttons, text, tables, etc.) change size accordingly.
image
While setting the ...
3
votes
1
answer
57
views
MiterJoin is ignored for single-pixel width pen
Problem
When drawing a rectangle with a line width of 1px on a QPainter with antialiasing enabled results in slightly transparent corners regardless of what JoinStyle is set. The same can be observed ...
0
votes
1
answer
51
views
Shortcuts not working when QComboBox popup is showing
I've added some keyboard shortcuts to my app (PyQt5), like so:
w = MyWidget()
QShortcut(QKeySequence("Ctrl+Up"), w).activated.connect(some_function)
Unfortunately, when w has a child widget ...
0
votes
0
answers
17
views
pip python installation problem for pyqt5? [duplicate]
guys. I used pip to install PyQt5, but when I try to import QtWidgets, I get an error message. When I go to the site-packages directory, I find nothing.
I tried installing the package manually, but I ...