Top "Pyqt5" questions

Qt5 bindings for Python programming.

PyQt5 cannot import name 'QApplication'

I am trying convert my code from PyQt4 to PyQt5 but I am getting errors. from PyQt5.QtGui import QApplication, …

python pyqt5
PyQt showing video stream from opencv

Try to link PyQt and Opencv video feed, can't understand how to apply while loop for continuously streaming video. It …

python opencv pyqt pyqt5 qpixmap
PyQt5: How can I connect a QPushButton to a slot?

Okay, so pretty much every tutorial/understandable-written-in-human-language-documentation is for PyQt4. But, PyQt5 changed how the whole 'connect button to a …

python qt signals-slots pyqt5
How to install PyQt5 on Windows for Python 2?

I am porting a Python 2 app which uses PyQt5 from Linux to Windows. Question: How do I install PyQt5 on …

python-2.7 pyqt5
Python PyQt5: How to show an error message with PyQt5

In normal Python (3.x) we always use showerror() from the tkinter module to display an error message but what should …

python message messagebox pyqt5
How to set a window icon with PyQt5?

from PyQt5 import QtWidgets, QtGui from PyQt5.QtWidgets import * from PyQt5.QtCore import * class Application(QMainWindow): def __init__(self): super(…

python icons pyqt5 qmainwindow python-3.6
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 …

qt pyqt qt5 pyqt5 qstyle
pyQt: How do I update a label?

I created this simple UI with qtDesigner and I want to update my label every 10 seconds with the value of …

python python-3.x pyqt5 qt-designer qtwidgets
Get text from qtextedit and assign it to a variable

When I try to get the text from the qtextedit created with PyQt5 Designer I get an error or "Python …

python pyqt pyqt5 qtextedit
How to check if a keyboard modifier is pressed (shift, ctrl, alt)?

I am building a UI with Qt Designer and I want buttons to perform different actions with different modifiers. So …

python pyqt pyqt5 pyqt4 modifier-key