Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Right way to dynamically create qml windows
Avedis Zildjian last edited by
I'm working on a Qt application and I need to create windows dynamically. Each window consists of QObject-based c++ backend and qml-based interface. Each window needs to be connected to the bunch of signals emitted by core classes. Current solution is to derive window from QQuickView, connect signals to it and load qml using setSource(). Is it a right way or there is a better way? Is it better to use one QQmlEngine for all windows (and use this engine as parent for every window) or create new engine for each new window?