> -----Original Message-----
> From: Interest [mailto:interest-bounces+mitch.curtis=qt...@qt-project.org]
> On Behalf Of Jason H
> Sent: Tuesday, 16 May 2017 12:07 AM
> To: interestqt-project.org <interest@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to