[Interest] QApplication instead of QGuiApplication for QML only projects?
schluchti at gmail.com
Fri Jun 23 19:21:20 CEST 2017
up to now I always used QGuiApplication when developing QML only
applications. However, the QtCharts module requires QApplication instead of
QGuiApplication, otherwise it stops with an assert:
"ASSERT: "Unable to render embedded object: File ("No style available
without QApplication) not found". (see
I now replaced QGuiApplication with QApplication, which _seems_ to work (at
least I couldn't recognize any strange behaviour after a quick test). But
is it really safe to use QApplication instead of QGuiApplication for all
platforms (desktop, android, iOs..)? Or are there any hidden pitfalls doing
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest