Python for QT design studio
-
wrote on 16 Apr 2023, 11:23 last edited by
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. -
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.wrote on 16 Apr 2023, 12:09 last edited by JonB@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.uifile 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 27 Apr 2023, 13:24
1/2