WIN7 Qt Creator Installation QWT

Source: Internet
Author: User
Tags qt designer

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.