[Interest] Qmake one-line Qt version checking?

Michael Sué sue at sf.mpg.de
Fri Jan 6 13:34:27 CET 2017


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)

- Michael.





More information about the Interest mailing list