QT Design Studio & Python
-
New to Design Studio... can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++). Or am I missing the point here .. is QT Design Studio designed for C++ development?
-
New to Design Studio... can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++). Or am I missing the point here .. is QT Design Studio designed for C++ development?
@Captain-Haddock
Do you indeed mean Qt Design Studio, not Designer built into Creator? This reddit thread indicates the difficulties. Or maybe https://stackoverflow.com/questions/64188695/can-i-export-ui-file-from-qt-design-studio would work for you? -
@Captain-Haddock
Do you indeed mean Qt Design Studio, not Designer built into Creator? This reddit thread indicates the difficulties. Or maybe https://stackoverflow.com/questions/64188695/can-i-export-ui-file-from-qt-design-studio would work for you?@JonB I do mean Design Studio. Ill look at the thread you pointed to .. thx
-
New to Design Studio... can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++). Or am I missing the point here .. is QT Design Studio designed for C++ development?
@Captain-Haddock said in QT Design Studio & Python:
is QT Design Studio designed for C++ development?
Qt Design Studio is for visually designing GUIs (*.ui.qml files). It is not for writing application logic.
Once you have created your *.ui.qml files using Qt Design Studio, you use a different IDE to add JavaScript and C++/Python logic that uses these *.ui.qml files.
can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++).
I'm not aware of such tutorials, but the main thing you need is any tutorial that shows you how to use QML files from Python.
-
@Captain-Haddock said in QT Design Studio & Python:
is QT Design Studio designed for C++ development?
Qt Design Studio is for visually designing GUIs (*.ui.qml files). It is not for writing application logic.
Once you have created your *.ui.qml files using Qt Design Studio, you use a different IDE to add JavaScript and C++/Python logic that uses these *.ui.qml files.
can someone please point me to a tutorial that shows creating a UI with Design Studio and then adding logic with Python (not C++).
I'm not aware of such tutorials, but the main thing you need is any tutorial that shows you how to use QML files from Python.
@JKSH said in QT Design Studio & Python:
the main thing you need is any tutorial that shows you how to use QML files from Python.
Perfect timing: See https://www.qt.io/blog/qt-for-python-6.5 it has a link to the example and tutorial below:
-
J JonB referenced this topic on
-
@JKSH said in QT Design Studio & Python:
the main thing you need is any tutorial that shows you how to use QML files from Python.
Perfect timing: See https://www.qt.io/blog/qt-for-python-6.5 it has a link to the example and tutorial below:
@JKSH said in QT Design Studio & Python:
See https://www.qt.io/blog/qt-for-python-6.5 it has a link to the example and tutorial below:
https://doc-snapshots.qt.io/qtforpython-dev/examples/example_quickcontrols_filesystemexplorer.html
This link provides a number of files and folders as a ZIP file, including filesystemexplorer.py. When I run filesystemexplorer.py, the application window appears and all features work. That's great.
But how can I generate all these files, including the corresponding Python script, if I want to run my own Design Studio project from Python? Is there a tutorial or documentation for this workflow?