A probe into the internet of Things--tool installation QWT

Source: Internet
Author: User

A probe into the internet of Things--tool installation QWT
Copyright Notice
The article was originally created inQter Open Source Community(www.qter.org), author lxdlbs371, reproduced please specify the source!

Introduction
QWT, the full name isQt Widgets for Technical applications, is a based onLGPLThe Open source project of the copyright Agreement, which provides a technical professional background programGUIcomponent and a set of utility classes whose goal is to base the2Dthe form part of the method to display the data, The data source is numeric,Arrayor a set of floating-point numbers, for the output mode can beCurves(curve),Slider(scroll bar),Dials(disc),compasses(instrument panel) and so on. The tool library is based onQtdeveloped, so also inherited theQtcross-platform features

Analysis
Creator isQt IDE for cross-platformPlatform. InstallationQWTrequirements are: inMinGWversion ofQt Creatoron IntegrationQWTplug-in, and can be run directly to joinQWTplug-in programs.    AnalysisMinGWversion ofQt Creator, not hard to find,MinGWversionQt Creator is based on MSVC. So, we first want to generate the MSVC version of the QWT plugin to add to theMinGWversionQtcreator, second, generateMinGWversion ofQWTput inMinGWversionIn the QT Library, this makes future development easier.


Tools:cn_visual_studio_2010_ultimate_x86_dvd_532347------------The MSVC version of the compilation environmentqt-opensource-windows-x86-msvc2010_opengl-5.4.1------------Generate msvc version of QWT pluginqt-opensource-windows-x86-mingw491_opengl-5.4.1------------Common Toolsqwt-6.1.2------------QWT Source Package



PracticeFirst step: Generate the MSVC version of the QWT plugin1.1: Install cn_visual_studio_2010 until successful installation is complete.
   
1.2: Install qt-opensource-windows-x86-msvc2010_opengl-5.4.1 and Qt-opensource-windows-x86-mingw491_opengl-5.4.1.


1.3: The QWT source package is divided into two classes on the D-disk, to be compiled and installed. Here is the D:\qwt\ folder under the MinGW and msvc two folders, because the role of MSVC is to generate a QT creator Visual plug-in, so only need to put the QWT source package.



1.4: Modify the installation path of the QWT file. Here is the installation to the C:\Qt folder. The QT installer defaults to this directory. Because there are two sets of source code, so need to modify two sets of Qwtconfig.pri. Locate the Qwt_install_prefix parameter in the Qwtconfig.pri file and modify it to C:/qt/qwt_vs and C:/QT/QWT_GW.


1.5: Compile QWT source code. Go to D:\qwt\MSVC\qwt-6.1.2 and execute the following command:Note: Qmake needs to run in Qt 5.432-bit for Desktop (MSVC OpenGL), NMAKE and Nmakeinstall need to run in the Visual Studio command Prompt (2010) window. Finally, you can see that the Qwt_vs folder is generated under the C:\Qt folder.
    1. Qmake
    2. Nmake
    3. NMAKE Install
Copy Code    




1.6: Load MinGW version of QT Creator visualization control. Open C:\Qt\Qwt_vs\plugins\designer, find Qwt_designer_plugin.dll, copy to C:\Qt\Qt5.4.1\Tools\QtCreator\bin\plugins\ Designer.

1.7: Check out the MinGW version of Qt Creator, the QWT control area appears. However, if you want to generate MinGW version of the QWT program, will report a bunch of errors, because MinGW version of the QWT library is not generated, so the next step is to generate MinGW version of the QWT link library.


Step Two: Generate the MinGW version of the QWT link library 2.1: Enter D:\ qwt\mingw\qwt-6.1.2, modify the Qwtconfig.pri as described above in 1.4 steps. and open the MinGW version of the command window, execute the following command: Finally, you can see the C:\QT\QWT_GW generated under C:\Qt.
    1. QMAKE
    2. MINGW32-MAKE
    3. mingw32-make Install
Copy Code



2.2: Add environment variable, variable name: qmakefeatures, variable value is: C:\Qt\Qwt_gw\features.



2.3: By this, QWT is already installed, we write a simple example to run it. Note that you need to add config + = QWT in the QT program's Pro project file. Then run the program. You can see that the QWT control has been generated.




2.4 Add QWT help documentation. Open the MinGW version of Qt Creator and open the menu item: Tools---options, find "help" on the left, click "Document" on the right, then click "Add" button, select the Qwt-6.1.2.qch file, then OK.



Extensions:QWT is a very useful tool that can be used in sensor control, smart home control and navigation applications.

A probe into the internet of Things--tool installation QWT

Related Article

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.