Re: [Interest] Suggestion: Change default QML main.cpp

2017-05-16 Thread Mitch Curtis
> -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 > Subject: [Interest] Suggestion: Change default QML main.cpp > > After the

[Interest] Suggestion: Change default QML main.cpp

2017-05-15 Thread Jason H
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