[Development] Can QImage format plugins require QGuiApplication?

Konstantin Tokarev annulen at yandex.ru
Tue Apr 14 01:34:33 CEST 2020

14.04.2020, 02:27, "Giuseppe D'Angelo via Development" <development at qt-project.org>:
> Il 13/04/20 18:50, Kevin Kofler ha scritto:
>>  Today, a user on #fedora-kde ran across a crash which resulted from:
>>  * a GTK+/GNOME application (Jami) using (for some reason) QImage to load
>>     images, without a QGuiApplication or QApplication constructed, vs.
>>  * a QImage format plugin (QtPBFImagePlugin) using font APIs that require
>>     QGuiApplication and abort otherwise.
>>  Obviously, one or the other must be wrong. So, who is to blame?
> The golden rule is that you're not allowed to touch any Qt API without
> creating a Q*Application object first, unless the documentation says
> otherwise.

Question is whether Q_Core_Application should be sufficient for using and image format plugin,
or QGuiApplication/QApplication is required.


More information about the Development mailing list