Hello,
I want to load the correct qwt.prf file based on the Qt version. The following code in the .pro file loads both the Qt4 and Qt5 files.
lessThan(QT_MAJOR_VERSION, 5) {
message("qt4")
include (/usr/share/qt4/mkspecs/features/qwt.prf)
}
greaterThan(QT_MAJOR_VERSION, 4) {
message("qt5")
include (/usr/lib64/qt5/mkspecs/features/qwt.prf)
}
lessThan(QT_MAJOR_VERSION, 5) {
message("qt4")
include (/usr/share/qt4/mkspecs/features/qwt.prf)
}
greaterThan(QT_MAJOR_VERSION, 4) {
message("qt5")
include (/usr/lib64/qt5/mkspecs/features/qwt.prf)
}
To copy to clipboard, switch view to plain text mode
Is there any way to make this work?
Bookmarks