[Interest] Qmake one-line Qt version checking?

André Hartmann andre.hartmann at iseg-hv.de
Fri Jan 6 14:06:38 CET 2017


Hi Michael,

Am 06.01.2017 um 13:34 schrieb Michael Sué:
> Hi,
>
>> #if QT_VERSION < 0x050800
>> #	error "This program requires Qt 5.8 or higher"
>> #endif
>
> You can use:
> lessThan(QT_VERSION, 5.8.0): message(This program requires Qt 5.8 or higher)

That works indeed - thank you very much!

André

> - Michael.
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>




More information about the Interest mailing list