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 version with Qt 5.2.1
Forum Update on Monday, May 27th 2025

OpenGL version with Qt 5.2.1

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 660 Views
  • 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.
  • U Offline
    U Offline
    UneHuitre
    wrote on 7 May 2014, 15:50 last edited by
    #1

    Hi everyone!

    I'm currently working on a cross platform project but I encounter an issue related to the OpenGL version while trying to run it on Mac OSX Maveriks.

    Indeed I created a QGLWidget which is integrated on my window through Qt designer but I can't manage to run OpenGL 3.3 functions on it. I tried to set the format of my widget using @setFormat@ method but it either segfault when I try to set it to 3.3, or does not change anything when trying to set to 3.0 since when I ask my widget for the current OpenGL version (using @glGetString(GL_VERSION)@) it returns "2.1" whether I've manually set the format or not.
    Does this number actually refer to OpenGL or OpenGL ES version? How can I set Qt to use OpenGL 3.0+?

    I also would like to pass the QGLFormat to the constructor of my QGLWidget but I can't figure how since I created my window with the designer so the widget constructor is called when the UI is set...

    I'm using Qt creator 3.0.1 with Qt 5.2.1 running on Mac OSX 10.9.2 with a GeForce 9400 GPU (officially supporting OGL 3.3)

    Thanks a lot for your answers and don't hesitate to insult me if I'm not understandable or if the english mistakes I made hurt you!

    1 Reply Last reply
    0

    1/1

    7 May 2014, 15:50

    • Login

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