Hi,

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
https://bugreports.qt.io/browse/QTBUG-49895 )

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
that?

Thanks,
Bernhard
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to