Win7 under QWT installation tutorial

Source: Internet
Author: User

 One. Installation:
The installation of the QWT is simple and can be see its install documentation.
1. Unpack the downloaded zip file, such as untie to the d:\qt\qwt-5.0.2 directory, modify the directory of the Qwtconfig.pri file inside the installation path, such as I am going to install it into the D:\QT\QWT directory, then
Win32 {
Installbase = D:/QT/QWT
}
2. From the QT cmd environment into the qwt-5.0.2 directory, run
Qmake Qwt.pro
Make
Make install
3. Add the D:\qt\qwt\lib directory to the system path variable.
The installation is complete here, and if it's completely successful, you can see the QWT control inside the Qdesigner.
Add:
QWT is a free GUI component based on Qt. The column URL on the Internet is http://qwt.sourceforge.net/. At this site you can view an introduction to QWT, an example, and a download of the source code. The current version of the class library is 5.0.2, which supports Qt >= 2.3.0, but 5.0.2 I compiled many times without success after changing 5.0.0 version, once succeeded.
Here's a look at the compilation process on Windows (VC6.0). QWT source program downloaded, extracted into a directory, such as D:\QT\QWT. Go to the command line and execute the following command in turn:
CD D:\QT\QWT
Qmake Qwt.pro
Nmake
CD Designer
Qmake Qwtplugin.pro
Nmake
Cd..
CD examples
Qmake Examples.pro
Nmake
After executing the above command, the QWT component is compiled. The C:\Qt\Qwt\lib Qwt.dll and Qwt.lib are then copied to D:\qt\4.3.2 \ Bin and D:\qt\4.3.2\lib (in the case of Qt installation in the D:\qt\4.3.2 directory) directory. The Qwtplugin.dll and the D:\Qt\Qwt\designer \plugins\designer directory are then
The qwtplugin.lib is copied to the D:\Qt\4.3.2\plugins\designer directory. Copy all the files under the D:\Qt\Qwt\include directory to the D:\Qt\4.3.2\include directory. This completes the compilation and configuration work of the QWT. When you draw the user interface in designer, you can see that the "QWT" type of control is added to the Toolbox toolbox on the left side of the interface. We can use the QWT component just like other QT controls when designing the user interface. In the program to increase the library file Qwt.lib, after compiling will automatically include the included header file into the program.
from:http://www.qtcn.org/bbs/read.php?tid=16740
Just as Java has Jfreechart, QT also has an unofficial component qwt similar to charting. The installation of QWT can be found here. After you finish loading the QWT, you can see the newly added component Qwtwidget in the designer. There are qwtplot,qwtknob,qwtwheel and other components that are more useful. Using Qwtplot to set up a real-time data acquisition curve, the effect is good. (Add: The designer under VS does not see the newly added component and needs to copy the DESIGNER/PLUGINS/DESIGNER/QWT _designer_plugin5.dll from the compiled qwt directory to QT vs Integration under the Plugins/designer)

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.