[Interest] Qmake one-line Qt version checking?
André Hartmann
andre.hartmann at iseg-hv.de
Thu Jan 5 16:56:51 CET 2017
Hi,
in C++ code I can do a Qt version comparison in one line like this:
#if QT_VERSION < 0x050800
# error "This program requires Qt 5.8 or higher"
#endif
To do something similar in a .pro file, I have to use a
construct like this:
lessThan(QT_MAJOR_VERSION, 5): message("This program requires Qt 5.8")
else: lessThan(QT_MINOR_VERSION, 8): message("This program...")
Is there a way to do a comparison here like in C++ in one line?
Best regards,
Andre
More information about the Interest
mailing list