The Qwt library contains GUI Components and utility classes which are primarily useful for programs with a technical background. Beside a 2D plot widget it provides scales, sliders, dials, compasses, thermometers, wheels and knobs to control or display values, arrays, or ranges of type double. Qwt is distributed under the terms of the Qwt License, Version 1.0. It is compatible with Qt Creator >=4.4. QwtPlot can be downloaded from HERE.
I will explain the easy way of installation in STEPS
- At First extract the zip file(preferably C:) you have downloaded and you will get a folder named qwt-6.0.0. Inside the folder qwt-6.0.0 you will get a qwt.pro file. Open the qwt.pro file with QT and run it(Ctrl+r).
- Even you might get error during runtime but will get another folder qwt named qwt-build-desktop. Here you might want to install the library with qMake and so on but I go the library without installing them with qmake and so on. Hence I would not prefer to install library with qmake and so on
- Copy the dll files named qwt.dll and qwtd.dll from qwt-6.0.0/lib folder preferably to C:/Qt?bin folder oe you can also copy it to windows/system 32.
- Now statically link the library file and header files of QWT with your QT project. In order to link simply provide the path in the PRO section of your new project in QT: QWT_LOCATION = C:/qwt-6.0.0
INCLUDEPATH += $${QWT_LOCATION}/src
LIBS = -L$${QWT_LOCATION}/lib \
-lqwt - Now start coding in mainwindow.cpp section by #include <qwt.h> and so on.
Great work Suraj :)
ReplyDeleteI searched for your contact details...
but failed to get any. Please give me your
email ID or contact number.
Thanks...
DeleteEmail ID: surajready2go@gmail.com