Many projectsCodeIs written based on qwt-5.1.1, in fact 5.1.1 version has a lot of problems, we decided to adopt 5.2.0.
First, extract the qwt-5.2.0 to the root directory of a disk, it can also be a non-root directory, but if so, you need to modify qwtconfig under the qwt root directory. PRI file, but also modify. qwt directory in the PRO project file.
After decompression to a directory, modify the following code in the qwtconfig. PRI file:
Win32 {
Installbase = C:/Qwt-5.2.0
}
Here We decompress it to the root directory of drive C.
Open QT command prompt, CD to qwt-5.2.0, run
Qmake qwt. Pro
Mingw32-make
After running, a lib folder is generated under the root directory of the qwt-5.2.0, which contains libqwt5.a and qwt5.dll files.
Open QT creator, open the project, enter the projects mode, click Build Environment in build settings, add c: \ qwt-5.2.0 \ Src in path, which contains many qwt header files, if this parameter is not added, many errors cannot be found in the header files during compilation.
At this time, an error occurs during compilation, but after compilation, A qwtconfig folder is generated in the project directory, which contains a qwtconfig. PRI file. Here is some code related to qwt configuration.