PDA

View Full Version : Problem with QGLWidcet including



sebap123
26th January 2011, 09:06
Hi,
I`d like to make a Qt application using also OpenGL. I`ve read some articles about it and there was only info that i have to ad
#include <QGLWidget>

I`ve done it, and nothing was included, and the build error appeared, that there isn`t anything like this. Is there possibility, that I`ve canceled installation of this library during Qt installation or it is another reason of this?
I`m using Qt Cretor 2.0.1 which is based on Qt 4.7.0.

franz
26th January 2011, 16:08
Open the .pro file and add something like

QT += opengl

sebap123
27th January 2011, 13:21
Ok, thank you. Now it works.