WIN7 Qt Creator installation QWT
Environment: WIN7 +QT Creator 2.6.2
1. Download QWT source code
Qwt-6.1-rc3.zip
2 Compiling QWT
Open projects-> Find the Qwt.pro file->open in the extracted qwt-6.0.1, find designer->qwtbuild->qwtbuild.pri modified to
5. Run the build61) Copy the *.dll from the QWT source D:\Qt\qwt-6.1-rc3\lib directory toQT SDK under D:\Qt\Qt5.0.1\5.0.1\mingw47_32\bin directory2) Copy the *.a from the qwt source D:\Qt\qwt-6.1-rc3\lib directory to the Qt SDK D:\Qt\ under the Qt5.0.1\5.0.1\mingw47_32\lib directory 3) Compile and build the directory D:\Qt\qwt-build-Desktop_Qt_5_0_1_MinGW_32bit-Debug\designer\plugins\designer Libqwt_designer_ Plugin.a and Qwt_designer_plugin.dll copied to the Qt SDK D:\Qt\Qt5.0.1\5.0.1\mingw47_32\plugins\designer directoryThe above steps can be considered as the process of preparing the QWT library, and there are important steps to write QWT .
4) in the QT SDK include directory to create a new folder called QWT "2010.05\qt\include\qwt", the source src directory to copy all the files in this folder "Qwt-6.0.1\src"
8. In the new QT project file. Pro Add:
LIBS+=-l "D:\Qt\Qt5.0.1\5.0.1\mingw47_32\lib"-LQWT
Includepath+ = "D:\Qt\Qt5.0.1\5.0.1\mingw47_32\include\qwt"
include (D:\QT\QWT-6.1-RC3\QWT.PRF)
9. Reopen the Qtcreator and you can see the QWT control inside the Qdesigner. (
open **.ui with Qt Designer to have QWT control) The left widget box on QT Designer is dragged to the end with the QWT control.