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

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

Reply via email to