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
70
votes
14
answers
72k
views
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel' for PyQt5 5.15.0
A program I am trying to install requires the installation of PyQt5 5.15.0 , which gives me this error. The odd thing is that the installation works fine for the latest version of PyQt5 (5.15.2), but ...
67
votes
3
answers
60k
views
Is there a tutorial specifically for PyQt5? [closed]
I am looking for a PyQt5 tutorial. It is rather complicated to start GUI development with Python for the first time without a tutorial.
I only found some PyQt4 tutorials so far, and since something ...
65
votes
6
answers
145k
views
Python 3.7.0 No module named 'PyQt5.QtWebEngineWidgets'
I have Python 3.7.0 and I installed PyQt5 with this command:
pip install PyQt5
I have returned this error:
main.py", line 4, in <module>
from PyQt5.QtWebEngineWidgets import *
...
63
votes
3
answers
38k
views
Should I use `app.exec()` or `app.exec_()` in my PyQt application?
I use Python 3 and PyQt5. Here's my test PyQt5 program, focus on the last 2 lines:
from PyQt5.QtCore import *
from PyQt5.QtWidgets import *
import sys
class window(QWidget):
def __init__(self,parent=...
62
votes
21
answers
216k
views
PyQt5: How to install/run Qt Designer
Feeling really stupid, right now, but the title says it all:
How do you start the QtDesigner?
I've installed PyQt5 via pip and I believe to have identified the directory it's been installed in as
C:...
58
votes
4
answers
251k
views
How to get text in QlineEdit when QpushButton is pressed in a string?
I am trying to implement a function. My code is given below.
I want to get the text in lineedit with objectname 'host' in a string say 'shost' when the user clicks the pushbutton with name 'connect'. ...
48
votes
8
answers
98k
views
Dark theme for Qt widgets?
Background
I'm building a PyQt5 application, that I'd like to have a dark theme for. Previously I've worked with Android development where there was a dark theme that I could set for a whole ...
48
votes
9
answers
237k
views
ImportError: No module named PytQt5
following are my python, qt and sip versions
root@thura:~# python -V
Python 2.7.3
root@thura:~# qmake --version
QMake version 3.0
Using Qt version 5.0.2 in /usr/lib/i386-linux-gnu
root@thura:~# sip -...
46
votes
11
answers
99k
views
Process finished with exit code -1073741819 (0xC0000005) Pycharm
I'm completly stuck on this. I keep getting error message
Process finished with exit code -1073741819 (0xC0000005)
I'm using pycharm with pyqt5.6 and qt5.6.2 and the problem started when I ...
44
votes
3
answers
163k
views
PyQt proper use of emit() and pyqtSignal()
I am reading through some documentation on PyQt5 to come up with a simple signal-slot mechanism. I have come to a halt due to a design consideration.
Consider the following code:
import sys
from ...
43
votes
1
answer
98k
views
PyQt5 failing import of QtGui
I've just moved from PyQt4 to 5 and I'm having an issue with QtGui. I installed using the 32bit windows installer, not my own build.
when I do:
from PyQt5 import QtGui
I get
class MainWindow(...
41
votes
30
answers
136k
views
DLL load failed when importing PyQt5
I have installed PyQt5 on windows platform and and getting an importError: DLL load failed.
I have installed pyqt5 using the command
pip3 install pyqt5
Successfully installed pyqt5-5.8.1
My ...
40
votes
5
answers
106k
views
How to build multiple .py files into a single executable file using pyinstaller?
I have made a small PyQt application containing 5-6 .py files. Now I want to build and compile them into a single main file, meaning it has to operate from one main window exe.
My .py files are ...
39
votes
1
answer
76k
views
How to set QComboBox to item from item's text in PyQt/PySide
Is it possible to set QComboBox to an item knowing only an item's text value? I am trying to avoid looping through for i in range(myCombobox.count()) just to find an item's index so it could be used ...
37
votes
8
answers
49k
views
Install PyQt5 5.14.1 on Linux
pip3 install PyQt5
Collecting PyQt5
Using cached https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz
Complete output ...