[Qt-interest] Detecting GUI when compiling

Konstantin Tokarev annulen at yandex.ru
Fri Aug 19 08:09:48 CEST 2011



19.08.2011, 07:41, "Alex Strickland" <sscc at mweb.co.za>:
> On 2011/08/18 11:11 PM, Felipe Ferreri Tonello wrote:
>
>>  You can use QApplication::type()[1].
>
> Thanks, but I am looking for a compile time solution - a #define or similar.

You have to device your own #define for this purpose, or use existing #define
which you are using to control whether application is built with GUI or not.

-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list