Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. OpenGL + Qt 4.8.4
Forum Updated to NodeBB v4.3 + New Features

OpenGL + Qt 4.8.4

Scheduled Pinned Locked Moved General and Desktop
2 Posts 1 Posters 808 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cr4y88
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0
    • C Offline
      C Offline
      cr4y88
      wrote on last edited by
      #2

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

      it seems opengl in windows and linux works differently

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved