Python for QT design studio
-
Hello, sorry if this is a stupid question but I am learning QT currently and I am a bit confused by all the different programs. For my design I want a quite simply GUI with an image and a few buttons that change that image. Since it is a prototype this could have been done in Figma for instance. However, in the GUI there needs to be a few text boxes where the displayed text is based on data send from a sensor, using MQTT. Therefore I need to have the final GUI in Python/C++ to enable this connection.
What is completely unclear to me now, is how I can port my design from QT design studio to a python script? From what I understand this should be possible, but I cannot find any documentation on this. -
@mckenzy99
Somebody asked about this recently. The upshot was: assuming you do mean Design Studio it basically has no support for Python/PySide. You are supposed to export from Design Studio to.qml
, then to make a.ui
file which you can read into Qt Designer (part of Qt Creator, not the same thing as Design Studio). There you have a Qt project which you can code in Python. If you never meant Design Studio in the first place then you can do your editing in a project in Creator/Designer.Something like https://stackoverflow.com/questions/64188695/can-i-export-ui-file-from-qt-design-studio mentions this, though there are other references which I cannot find at the moment.
-
J JonB referenced this topic on