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.
Qt Code:
  1. lessThan(QT_MAJOR_VERSION, 5) {
  2. message("qt4")
  3. include (/usr/share/qt4/mkspecs/features/qwt.prf)
  4. }
  5.  
  6.  
  7. greaterThan(QT_MAJOR_VERSION, 4) {
  8. message("qt5")
  9. include (/usr/lib64/qt5/mkspecs/features/qwt.prf)
  10. }
To copy to clipboard, switch view to plain text mode 

Is there any way to make this work?