OpenGL + Qt 4.8.4

  • Hello guys...

    I'm using Qt 4.8.4 on Windows OS. I'm trying to create an openGL program. I create a widget using ui then promote it into my class which I already derive it from QGLWidget.

    I reimplement paintGL, initializeGL. When I try to create a simple GL_QUADS. The result is not what I expected. The quad is so small compared the size of the Widget I created.

    Anyone can help me with this?

  • it seems I found the problem.
    solved by reimplementing resizeGL with gluPerspective and gluLookAt

    it seems opengl in windows and linux works differently

Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.