[Development] Can QImage format plugins require QGuiApplication?
Allan Sandfeld Jensen
kde at carewolf.com
Tue Apr 14 11:30:42 CEST 2020
On Dienstag, 14. April 2020 02:08:22 CEST Giuseppe D'Angelo via Development wrote:
> Hi,
>
> On 4/14/20 1:34 AM, Konstantin Tokarev wrote:
> >> 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.
>
> No, any GUI-related API requires QGuiApplication, and any widget-related
> API QApplication.
>
In theory, but see https://codereview.qt-project.org/c/qt/qtbase/+/47846[1]
Best regards
Allan
--------
[1] https://codereview.qt-project.org/c/qt/qtbase/+/47846
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200414/2daa425f/attachment.html>
More information about the Development
mailing list