How to include Qwt library to current project
Solved
C++ Gurus
-
I read all the info on http://qwt.sourceforge.net/qwtinstall.html#COMPILEANDLINKAPP
Did execute as it is but if I do #include<dwf.h> in project it say fatal error:qwt.h: No such file or directory
I will also show you the pro file
QT += core gui multimedia printsupport widgets CONFIG += qwt TARGET = qt_oscillioscope TEMPLATE = app INCLUDEPATH += C:\qwt2\qwt-6.1.3\include LIBS += -L"C:\qwt2\qwt-6.1.3\lib"-lqwt # The following define makes your compiler emit warnings if you use # any feature of Qt which as been marked as deprecated (the exact warnings # depend on your compiler). Please consult the documentation of the # deprecated API in order to know how to port your code away from it. DEFINES += QT_DEPRECATED_WARNINGS # You can also make your code fail to compile if you use deprecated APIs. # In order to do so, uncomment the following line. # You can also select to disable deprecated APIs only up to a certain version of Qt. #DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0 SOURCES += \ main.cpp \ mainwindow.cpp \ qcustomplot.cpp HEADERS += \ mainwindow.h \ qcustomplot.h FORMS += \ mainwindow.ui
please help me!!!
-
@thippu said in How to include Qwt library to current project:
CONFIG += qwt INCLUDEPATH += C:\qwt2\qwt-6.1.3\include LIBS += -L"C:\qwt2\qwt-6.1.3\lib"-lqwt
Instead of the 3 lines above, you can add just 1 line to your .pro file:
include(C:/qwt2/qwt-6.1.3/features/qwt.prf)
Also, in Qt it is best to use
/
instead of\
(So use "C:/qwt2/" instead of "C:\qwt2\") -
@thippu said in How to include Qwt library to current project:
@JKSH Bro,Thank you that one line worked!
Great!
How to get qwt designer included in the project
I haven't done this myself so I don't know, sorry. See if the user manual helps: http://qwt.sourceforge.net/qwtinstall.html