[Interest] What is the difference.

william.crocker at analog.com william.crocker at analog.com
Mon Sep 22 17:25:11 CEST 2014


On 09/22/2014 11:10 AM, Thiago Macieira wrote:
> On Monday 22 September 2014 11:01:23 william.crocker at analog.com wrote:
>> Gang:
>>
>> While we are talking about the need for a Q[Core]Application...
>>
>> What is the difference between;
>>
>>       QCoreApplication(argv,argc);
>>
>> and
>>
>>       QApplication(argc,argc,false);  // Note GUIEnabled=false
>
> It creates a QApplication, which enables a bunch of backend things, without
> also connecting to the display server.

When my normally-GUI application is run "off-line"
(to create plot images in files as opposed to drawing
them on the screen) I found that I had to use the
second option.

I do not remember the specifics... might have had something
to do with fontconfig or the use of the QImage class.

>
> Note that this constructor is removed in Qt 5.
>

Is that another reason why I can never use Qt 5?

Bill



More information about the Interest mailing list