Skip to content
Advertisement

Tag: pyqt

Post request by QWebEngineHttpRequest (PyQt5)

I have a question about making POST request in PyQt5. Unfortunately official documentation for this framework for Python doesen’t exist. I have to translate docs from C++ to Python. I have a problem with handle it. To make POST request I have to create instance of class QWebEngineHttpRequest (docs), and then add POST data by setPostData(), it looks to be

Adding items to QlistView

I’m using pyqt4 with python 2.7 and I have a list view widget that I can’t add items to it As you guys can see i used But it gave me an error that is talking about arguments and data types: Also, is it right to use ListView here or I should use listwidget? In general, what is the difference

PyQt5 QImage from Numpy Array

Considering the following code I get the following error TypeError: arguments did not match any overloaded call: QImage(): too many arguments QImage(QSize, QImage.Format): argument 1 has unexpected type ‘numpy.ndarray’ QImage(int, int, QImage.Format): argument 1 has unexpected type ‘numpy.ndarray’ QImage(bytes, int, int, QImage.Format): argument 1 has unexpected type ‘numpy.ndarray’ QImage(sip.voidptr, int, int, QImage.Format): argument 1 has unexpected type ‘numpy.ndarray’ QImage(bytes, int,

PyQt Label not changing text

I have this code running on a PyQt window on windows: Inside the “runSimulation” code I start a subprocess using the method “call”. This blocks my GUI and at the title of the window appears “Python stopping responding”, but if I wait a little bit the subprocess finishes normally, and the label is finally changed. But what I want is

Advertisement