1, download QWT
2, unzip the directory into the QWT
3,qmake, generating a makefile file
4, compiling, make
5, install, make install, need root
After installation, there will be qwt in the/usr/local directory.
6. Import the library file directory into the environment variable
7, installation Complete when QWT control cannot be loaded in Qtcreator
Dynamic Link Library
Copy the dynamic link library to
Installing plugins in Creator
Installing plugins in the designer
Finally, in the project file, add
+=coregui
GreaterThan (, 4): +=widgetsincludepath + =/usr/local/qwt-6.1.1/include LIBS + =-L "/usr/local/qwt-6.1.1/lib/"-lqwt
1, qgl.h: #include <gl/gl.h>:gl/gl.h:No such file.
Under Qopengl I can find qgl.h, which has # include <GL/GL.H>, but we can't find the gl.h file. In fact Gl.h is the header file in the X11 library, so the workaround is to install X11:
sudo apt-get install build-essential debian-keyring Freeglut3-dev
sudo apt-get install build-essential debian-keyring Freeglut3-dev
From for notes (Wiz)
Ubuntu QWT Qt