[Interest] Suggestion: Change default QML main.cpp
Jason H
jhihn at gmx.com
Tue May 16 00:06:35 CEST 2017
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.
More information about the Interest
mailing list