Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Game Development
  4. Having problem with OpenGL in QT 5.2
Forum Updated to NodeBB v4.3 + New Features

Having problem with OpenGL in QT 5.2

Scheduled Pinned Locked Moved Game Development
2 Posts 1 Posters 1.2k 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.
  • R Offline
    R Offline
    renato.viana
    wrote on last edited by
    #1

    Hi people,

    I'm having problem to render in OpenGL with QT 5.2....

    It seems that the depth buffer is with problem. Event when blending is disabled, it' render things behind others, causing a strange render....

    I'd check the Triangle Example of the SDK, to see if the problem is just with my code.. And when a create another triangle, the application has the same error.. Then I suppose that it's a QT bug.

    Someone can help?? I'm using QT 5.2 and creating a window extending from QWindow and QOpenGLFunctions.

    Thanks,
    Renato Dias Viana

    1 Reply Last reply
    0
    • R Offline
      R Offline
      renato.viana
      wrote on last edited by
      #2

      Resolved the problem. It's necessary to configure the QSurfaceFormat, to use Double Buffer. I does not came by default.

      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