Download the libQGLViewer installer
Then download and unzip libQGLViewer-2.3.4.zip.
• If you use the MinGW compiler (available when you install the OpenSource Qt 4 version), launch the Qt 4.x Command Prompt from the Start menu and type:cd \path\to\libQGLViewer-2.3.4\QGLViewer qmake make• If you use the Qt integration in Visual Studio (provided with the commercial Qt edition), open
QGLViewer/QGLViewer.pro
using the Qt - Open solution from .pro file menu and generate the solution*.
Copy the resulting QGLViewer2.dll
to a system
shared directory such as C:\Windows\System32
. An other option is to copy it to every executable's directory.
Then see the compilation with libQGLViewer page for details on examples' compilation.
LNK4068 /MACHINE
warning message can be fixed by editing Project - Properties of QGLViewer - Configuration properties - Link editor - Advanced - Target Computer.
Visual Studio 6 only: Use File-Open workspace to open the .dsp
generated file, and select Release as the Build/Active Configuration.
.vcproj
file can be generated from the .pro
file by typing qmake -t vclib QGLViewer.pro
in a Qt command line.
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. Note that you also have to install the QGLViewer2.dll
in C:\Windows\System32
(as described above).
Although successfully tested, this procedure does not seem to be sufficient with certain configurations, any explanation is more than welcome.
With Qt version 3, an alternative to this plugin is to add a "Custom Widget" using the
Tools/Custom designer menu. Select Load Descriptions... and provide the
qglviewer.cw
custom widget description file, located in the QGLViewer header files
directory. You can customize this description for your own classes, with your own signals and slots and the header
file path.
Please let me know if you encounter installation problems.