Preferred way to test for a Qt feature?

Thiago Macieira thiago at
Sun Aug 24 10:56:04 CEST 2008

Brad Hards wrote:
>I'm planning to add a feature that depends on a particular feature in Qt
> 4.5.
>Obviously I don't want to break current compilation with Qt 4.5
>Should I write a specific test for the required class, or can I just
> work off the Qt version?
>Any recommendations for an example to copy?

#if QT_VERSION >= 0x040500

  Thiago Macieira  -  thiago (AT) - thiago (AT)
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the Kde-buildsystem mailing list