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.