Qt Creator Design Mode for QML
-
I'm using Qt Creator 13.0.2 Community Edition. I've enabled the QmlDesigner plugin under the Qt Quick Header. I've created a project using the Application (Qt for Python) -> Qt Quick Application - Empty template. I've installed pyside6 in my virtual environment and my project will run. My issue is that when I activate design mode within Qt Creator and switch to the 2D tab, nothing works. I can't edit any of the properties and I can't scroll through the components, let alone drag and drop any of them. I haven't found a tutorial on using the design mode for QML Qt Quick Python apps. Am I missing something? I did notice that the QmlDesigner plugin says it's deprecated, Do I need to use Design Studio for the QML part? If so, how to I connect Studio with Creator?
-
Hi @pySwagger,
@pySwagger said in Qt Creator Design Mode for QML:
Do I need to use Design Studio for the QML part? If so, how to I connect Studio with Creator?
Yes, you should use Qt Design Studio instead. First you should learn about the workflow, read this: https://doc.qt.io/qtdesignstudio/studio-designer-developer-workflow.html
You can as well create your project in Qt Creator first & then open it with Qt Design Studio, just make sure you check 'Create a project that you can open in Design Studio'. https://doc.qt.io/qtcreator/quick-projects.html
Use Qt Creator for developing logic & Qt Design Studio for GUI.
Note: Qt Creator looks up for CMakeLists.txt to open the project, while Qt Design Studio looks up for .qmlproject
-
Hi @pySwagger,
@pySwagger said in Qt Creator Design Mode for QML:
Do I need to use Design Studio for the QML part? If so, how to I connect Studio with Creator?
Yes, you should use Qt Design Studio instead. First you should learn about the workflow, read this: https://doc.qt.io/qtdesignstudio/studio-designer-developer-workflow.html
You can as well create your project in Qt Creator first & then open it with Qt Design Studio, just make sure you check 'Create a project that you can open in Design Studio'. https://doc.qt.io/qtcreator/quick-projects.html
Use Qt Creator for developing logic & Qt Design Studio for GUI.
Note: Qt Creator looks up for CMakeLists.txt to open the project, while Qt Design Studio looks up for .qmlproject
-
-
I know this is an old post, but as I have searched the forums for this problem and could not find any solution i will post my findings here.
As the code suggests it could not found a qt kit. In the kit menu, after a fresh install it has a qt kit and a python kit. Now the python kit does not contains the qt, and the qt kit does not contains the python env.
The solution is easy, create a new kit that has both python and qt set. But simply creating a new one will not show the python option. In the default settings filter you need to tick python to visible, then in your new kit you can select both.After using this new kit you can use the designer.
