Skip to main content

Questions tagged [pyqt5]

Qt 5 bindings for Python programming. This allows programmer to make Qt 5 graphical user interfaces using Python syntax.

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 ...
Stefan Bongers's user avatar
-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 == ...
user's user avatar
  • 303
-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, ...
Daniel Cho's user avatar
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....
dz1981-bit's user avatar
-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....
Xenox's user avatar
  • 145
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 ...
余政倫's user avatar
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 ...
wood's user avatar
  • 1
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 ...
J.Shim's user avatar
  • 77
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 ...
Alex StAubin's user avatar
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 ...
dz1981-bit's user avatar
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-...
YuriS's user avatar
  • 3
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 ...
PHITON's user avatar
  • 1
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 ...
J. Coenen's user avatar
  • 334
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 ...
Pig's user avatar
  • 526
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 ...
Mo rez's user avatar
  • 1

15 30 50 per page