Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
QDS 4.6.0
-
None
Description
<Issue>
When the QML file to be Live-Previewed has a Window QML type at the root(it may also reproduce with ApplicationWindow, which I haven't verified), every time a user edits the QML file, the LivePreview windows closes and re-opens. This could annoy the user. Please see the attached LivePreviewReOpensForWindow.mp4. Ideally, the content on the Window just changes without the window being closing and re-opening.
One can create a custome QML component which encapsulates all the QML objects originally located under Window(such as "MainScreen.qml") just for LivePreviwing, but when a user is using QML types wihch expect Window or ApplicationWindow as a parent, they cannot rely on this workaround.
For example, in the attached [^EMS.zip], you can see that App.qml uses Drawer, which requires Window as its parent to function properly.