[Qt-interest] Detecting GUI when compiling
Alex Strickland
sscc at mweb.co.za
Fri Aug 19 05:54:25 CEST 2011
On 2011/08/19 05:41 AM, Alex Strickland wrote:
> 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.
>
To put it another way, from my Creator generated test app, when I try
and compile code under test:
c:\users\alex\qt\sav-v\eblog.h:9: error: C1083: Cannot open include
file: 'QMainWindow': No such file or directory
This makes sense (although I don't know how it is done), and now I wish
to code so that my logging utility can be used in a test exe or the
final GUI exe.
--
Alex
More information about the Qt-interest-old
mailing list