WindowsThen download and unzip libQGLViewer-2.5.3.zip.
Depending on your environment:QGLViewer/QGLViewer.pro project file and "build all".cd \path\to\libQGLViewer-2.5.3\QGLViewer qmake mingw32-make
QGLViewer/QGLViewer.pro and build the solution
*. This page explains how to use Qt with Visual Studio.
Then copy the generated QGLViewer2.dll and QGLViewer2d.dll to a system
shared directory such as C:\Windows\System32. An alternative is to copy the dll in every executable's directory.
See the compilation with libQGLViewer page for details on examples' compilation.
.vcproj file by typing qmake -t vclib QGLViewer.pro -spec win32-msvc2010 (adapt to your configuration) in a Qt command prompt window.
A LNK4068 /MACHINE warning message can be fixed by editing Project - Properties of QGLViewer - Configuration properties - Link editor - Advanced - Target Computer.
.dsp generated file, and select Release as the Build/Active Configuration.
Display Widgets tab to add it to your interface:
To compile the plugin, open the designerPlugin.pro file to create your workspace.
Install the resulting plugin library (qglviewerplugin.dll) in $QTDIR\plugins\designer and/or
C:\Program Files\QtSoftware\Qt VS Integration\plugins to use it with the Visual Studio
integrated designer.
QGLViewer2.dll.
Note that you also have to install QGLViewer2.dll in C:\Windows\System32 (as described above).
Copying this file to $QTDir\bin sometimes also seems necessary.
To create your own designer plugin for your derived QGLViewer class, start from this code and change a few lines as explained in the source.
See the interface example for an illustration of a user interface that includes a QGLViewer.Please let me know if you encounter installation problems.