I've written a quick test to determine if there is an actual leak in the creation and deletion of a QQUickWidget: class Widget : public QWidget { Q_OBJECT public: Widget(QWidget *parent = 0) : QWidget(parent) { widget = 0; count = 0; resize(200, 200); layout = new QVBoxLayout(this); setLayout(layout); QTimer...
I had to face same problem same time ago. Instead load the same component using the same QQuickView over and over again, I created a component in QML as content container and I load the required component as child of it. Every time a new component is set, we destroy...
qt,qml,qwidget,qtquick2,qquickview
That can be done easier, for example: main.qml import QtQuick 2.3 import QtQuick.Window 2.2 Item { Window { objectName: "wnd1" visible: true } Window { objectName: "wnd2" visible: true } } And so you can access these windows from C++ code: main.cpp QQmlApplicationEngine engine; engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); QQuickWindow *wnd1 = engine.rootObjects()[0]->findChild<QQuickWindow *>("wnd1");...