Because QPainter and those classes use Pixmaps internally.
________________________________
From: Etienne Sandré-Chardonnal <etienne.san...@m4x.org>
To: Scott Aron Bloom <scott.bl...@onshorecs.com>
Cc: "interest@qt-project.org" <Interest@qt-project.org>
Sent: Friday, January 3, 2014 1:14 PM
Subject: Re: [Interest] QPixmap : cannot create a qpixmap when no gui is
being used
Yes but... Why is "new QApplication(argc,argv,gui)" trying to create QPixmaps
when gui=false?
2014/1/3 Scott Aron Bloom <scott.bl...@onshorecs.com>
The issue is, you can run most of the GUI components, in non-gui mode..
>
>Scott
>
>From:interest-bounces+scott.bloom=onshorecs....@qt-project.org
>[mailto:interest-bounces+scott.bloom=onshorecs....@qt-project.org] On Behalf
>Of Etienne Sandré-Chardonnal
>Sent: Friday, January 3, 2014 9:03 AM
>To: interest@qt-project.org
>Subject: [Interest] QPixmap : cannot create a qpixmap when no gui is being used
>
>Dear all,
>
>I have the following main function:
>
>intmain(intargc,char*argv[])
>{
> //Check if gui is required (no parameters given, or "-gui" parameter)
> boolgui;
> if(argc<=1||hasGuiParam(argc,argv))
> gui=true;
> else
> gui=false;
>
> QCoreApplication*a=newQApplication(argc,argv,gui);
>
> ...
>}
>
>
>
>And I get the title error (cannot create QPixmap with no gui) at the
>QApplication creation (not after)
>
>
>What is wrong? That's the very start of the app.
>
>Thanks,
>
>Etienne
>
>_______________________________________________
>Interest mailing list
>Interest@qt-project.org
>http://lists.qt-project.org/mailman/listinfo/interest
>
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest