1. Download
Qwt 6.1.0
2. open qtcreator open projects-> Find the qwt. pro file in the decompressed qwt-6.1.0-> open.
3.650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/200AU128-0.jpg "title =" qq 30914161558.jpg "alt =" 161642724.jpg"/> change to 650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/200AV242-1.jpg "title =" qq 30914161756.jpg "alt =" 161837677.jpg"/>
4. build-> clean all-> run qmake. The purpose of clean all is to prevent the running of files that failed to be compiled before. This step mainly generates the makefile file.
5. rebuild qwt.
6.1) run *. dllqwt-6.101 \ lib copy to the bin directory of qt sdk 4.8.5 \ qt \ bin) will be the source code lib directory *. copy aqwt-6.1.0 \ lib to the lib directory of qt sdk 4.8.5 \ qt \ lib] 3) copy libqwt_designer_plugin.a and qwt_designer_plugin.dll qwt-build-desktop \ designer \ plugins \ designer in the compiled directory to 4.8.5 \ QT \ plugins \ designer in the designer directory of qt SDK. 4) create a folder named QWT 4.8.5 \ QT \ include \ qwt in the include directory of qt SDK, copy all the files under the src directory of the source code into this folder qwt-6.1.0 \ src]
7. Add the following content to the qwt project file:
LIBS + =-L "c:/Qt/4.8.5/qt/lib"-lqwt INCLUDEPATH + = c:/Qt/4.8.5/qt/include/qwt
8. re-open qtcreator and you will be able to see the QWT control in qdesigner. 650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/200AQ634-2.jpg "border =" 0 "style =" border: 0px; "alt =" 20717410_131771326618oe.jpg "/> drag the widget box on the left of qt designer to the end and have the qwt control.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/200AT502-3.jpg "border =" 0 "style =" border: 0px; "alt =" 20717410_1317713388nj5U.jpg "/>
10. during use, if you use different libraries, specify the debug version and release version respectively.
Debugging:
LIBS+=-L”D:/Qt/4.8.5/qt/lib”-lqwtd INCLUDEPATH+=D:/Qt/4.8.5/qt/include/qwt
Release:
LIBS+=-L”D:/Qt/4.8.5/qt/lib”-lqwt INCLUDEPATH+=D:/Qt/4.8.5/qt/include/qwt
Example: 650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/200AVH8-4.jpg "title =" qq 30914163108.jpg "alt =" 163201214.jpg"/>
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/200AQ560-5.jpg "title =" qq 30914163235.jpg "alt =" 163259265.jpg"/>
This article from the "LinuxQt Jinan High-Tech Zone" blog, please be sure to retain this source http://qtlinux.blog.51cto.com/3052744/1297114