Errors in using ApplicationWindow in Qt Quick Design
-
Hi,
Are you sure you are using the tool your think you are using ?
Your thread title mention Qt Quick Designer while the error mentions Qt Design Studio. These are not the same. -
Hi,
Are you sure you are using the tool your think you are using ?
Your thread title mention Qt Quick Designer while the error mentions Qt Design Studio. These are not the same. -
I don't know why, but this always causes an error in Qt Quick Designer when I use ApplicationWindow. Is there a solution for this?
@Blackzero said in Errors in using ApplicationWindow in Qt Quick Design:
Is there a solution for this?
- Always use
Item
(or something that inheritsItem
) as the root type in a *.ui.qml file. - Put your
ApplicationWindow
in a *.qml file and don't use the Designer to edit it.
@SGaist said in Errors in using ApplicationWindow in Qt Quick Design:
Your thread title mention Qt Quick Designer while the error mentions Qt Design Studio. These are not the same.
Behind the scenes, Qt Design Studio is actually a "re-skinned" copy of Qt Creator that brings the Qt Quick Designer to the forefront. That's supposed to be an implementation detail, but it leaks out in noticeable ways.
- Always use
-
@Blackzero said in Errors in using ApplicationWindow in Qt Quick Design:
Is there a solution for this?
- Always use
Item
(or something that inheritsItem
) as the root type in a *.ui.qml file. - Put your
ApplicationWindow
in a *.qml file and don't use the Designer to edit it.
@SGaist said in Errors in using ApplicationWindow in Qt Quick Design:
Your thread title mention Qt Quick Designer while the error mentions Qt Design Studio. These are not the same.
Behind the scenes, Qt Design Studio is actually a "re-skinned" copy of Qt Creator that brings the Qt Quick Designer to the forefront. That's supposed to be an implementation detail, but it leaks out in noticeable ways.
- Always use
-
@JKSH Yes, the application can still run. I hope that in the future, Qt Quick Plugin will support ApplicationWindow.
@Blackzero said in Errors in using ApplicationWindow in Qt Quick Design:
@JKSH Yes, the application can still run. I hope that in the future, Qt Quick Plugin will support ApplicationWindow.
There is an open change request for this. You can watch/vote for it: https://bugreports.qt.io/browse/QDS-10914
I forgot: It should also work if you use
Window
instead ofApplicationWindow
. But the latter is a lot more feature-rich.