Search code examples
c++qtqt5qmakeqwt

qt creator does not see the qwt headers


I have installed qwt as it explained here. The problem is that compiler can not find qwt headers. When I type #include <qwt_plot_h> in mainwindow.cpp file, compiler gives an error: qwt_plot.h:No such file or directory.


Solution

  • You need to put this into your project file:

    CONFIG  += qxt
    QXT     += core gui
    

    You could invoke qmake like this, e.g. on Windows:

    qmake -set QMAKEFEATURES C:\Qwt-6.1.0\features