From a9cae7c25c67dfc21f63202a9fadba8ad20d24df Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 15 Jan 2015 15:45:46 +0100 Subject: Fix the new window example code GC problems If we want to allow destroying the main window, we need to also create it dynamically. Use an intermediate root QtObject to take care of this. Change-Id: I04ba2ac7b1a24ea75ee1eecc3ab9157e8645ab30 Reviewed-by: Andras Becsi --- tests/quicktestbrowser/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/quicktestbrowser/main.cpp') diff --git a/tests/quicktestbrowser/main.cpp b/tests/quicktestbrowser/main.cpp index c81b92794..2d5271176 100644 --- a/tests/quicktestbrowser/main.cpp +++ b/tests/quicktestbrowser/main.cpp @@ -79,7 +79,7 @@ int main(int argc, char **argv) QQmlApplicationEngine appEngine; Utils utils; appEngine.rootContext()->setContextProperty("utils", &utils); - appEngine.load(QUrl("qrc:/BrowserWindow.qml")); + appEngine.load(QUrl("qrc:/ApplicationRoot.qml")); QMetaObject::invokeMethod(appEngine.rootObjects().first(), "load", Q_ARG(QVariant, startupUrl())); return app.exec(); -- cgit v1.2.3