Generate qml file from QQmlApplicationEngine which is added some new UI object (Rectangle, Button,...)
-
As the same idea in thí topic:
https://forum.qt.io/topic/135075/quiloader-can-load-an-ui-file-into-a-qwidget-but-how-to-save-qwidget-to-ui-file/4?fbclid=IwAR1oQsIGm-s0TR9gv-eGXbFSJSP9xwQxs0ZiLNol77VNv30U-53PDEXmCFwWe can load UI from qml file by using QQmlApplicationEngine, but after added some UI object (Rectangle, Button,...) to QQmlApplicationEngine, how to save QQmlApplicationEngine which has new UI object to new qml file?
Thank you in advance.
-
Are you dynamically creating the objects & attaching to existing window ? engine does not have any method to store qml. You need to store in a file on your own.
-
Are you dynamically creating the objects & attaching to existing window ? engine does not have any method to store qml. You need to store in a file on your own.
@dheerendra
Thank you so much,
I also thought about doing that manually,
but actually I'm don't want to do something that Qt did well :D. -
Is it possible to dynamically create QML Rectangle/Image/Item in sperate plugin and attach to existing QtQuick Window. This Rectangle/Image must be like overlay on top of the window. Is this possible on EGLFS platform. Thanks in Advance!