Questions tagged [pyqt5]
Qt 5 bindings for Python programming. This allows programmer to make Qt 5 graphical user interfaces using Python syntax.
pyqt5
1,459
questions
7
votes
2
answers
7k
views
QtDesigner changes will be lost after redesign User Interface
I'm using Qt Designer for design GUI to use in python, after designing my desired UI in Qt Designer, convert it to python code and then I changed generated code to do some action in my python code, ...
10
votes
2
answers
16k
views
Passing extra arguments through connect
Is it possible to pass variables through slots so I can print out certain text?
Trying to pass variable 'DiffP' which is defined in another function to slot.
'DiffP' changes based on which file is ...
18
votes
2
answers
63k
views
Argument 1 has unexpected type 'NoneType'?
I have a problem with my PyQt button action. I would like to send a String with the Function but I got this Error:
TypeError: argument 1 has unexpected type 'NoneType'
import sys
from PyQt5....
26
votes
3
answers
69k
views
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 just take a still picture.Please can anyone help to solve the problem.
PtQt=5
...
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 ...
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 ...
19
votes
2
answers
18k
views
PyQt: No error msg (traceback) on exit
My PyQt application no longer prints the error (stderr?) to the console.
I use QtDesigner and import the UI like this:
from PyQt5 import QtCore, QtGui, QtWidgets
import sys
from PyQt5.uic import ...
23
votes
3
answers
48k
views
How to display a Pandas data frame with PyQt5/PySide2
I have a problem with the line below self.tableView.set??????????(df) that supposed to display the data frame in PyQt5. I put ??? there where I am missing the code I need.
def btn_clk(self):
...
7
votes
3
answers
22k
views
How to add a QVideoWidget in Qt Designer?
I want to insert video in blue box(ui image) but I don't know how to insert video file.
My code is here.
I don't know how to add video... Just know example that make video player ...
import sys
...
3
votes
1
answer
2k
views
QLabel is not updated unless the mainWindow is unfocused
I am trying "Hello World" using PyQt5 with Python 3.7.3 and macOS 10.14.6. Executing pyqt_helloworld.py below and clicking the button will update the label to "Hello World".
However, when the button ...
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 ...
4
votes
1
answer
4k
views
Customising code of Qt designer widget?
I need to add some features to a graphics widget in a form I created using the Qt Designer.
For example I would normally do something like this:
class custom_gv(QGraphicsView):
def __init__(...
2
votes
1
answer
1k
views
Is there a difference between QFileDialog strings in PyQt4 and PyQt5?
I have a block of code that opens a QFileDialog using Python3 and PyQt5:
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QFileDialog
import sys
class MCVE(QWidget):
def __init__(...
2
votes
3
answers
7k
views
clicked.connect() Error
I'm working on Window 10,PyCharm-Python 3.5.2
What I was trying to do: If PB1(push button 1) clicked, open a new window.
Problem: I get an error
self.PB1.clicked.connect(self.Soft_Memory())
...
1
vote
2
answers
1k
views
How do I assert the identity of a PyQt5 signal?
I'm in a situation where I want to assert the identity of a PyQt5 signal. Specifically, I want to check whether the clicked signal from a given QPushButton object is identical to a signal that is ...