[Interest] Suggestion: Change default QML main.cpp

Mitch Curtis mitch.curtis at qt.io
Tue May 16 11:17:01 CEST 2017


> -----Original Message-----
> From: Interest [mailto:interest-bounces+mitch.curtis=qt.io at qt-project.org]
> On Behalf Of Jason H
> Sent: Tuesday, 16 May 2017 12:07 AM
> To: interestqt-project.org <interest at qt-project.org>
> Subject: [Interest] Suggestion: Change default QML main.cpp
> 
> After the
> 	engine.load(QUrl(QLatin1String("qrc:/main.qml")));
> 
> call, if there is a parsing error, the engine is empty. The eventloop will
> continue to run. Therefore, it should check before starting the event
> loop.
> 
> 	if (engine.rootObjects().size() > 0)
> 		return app.exec();
> 
> 	return 255;
> 
> This will help both in Creator from having many processes running that are
> filling up the App output tab, as well as any scripts that expect a
> process to be usable, but have failed to load.

Related bug report: https://bugreports.qt.io/browse/QTBUG-47996

> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest



More information about the Interest mailing list