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. Where are the OpenGL functions located?
QtWS25 Last Chance

Where are the OpenGL functions located?

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 1.0k 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.
  • F Offline
    F Offline
    Flurite
    wrote on last edited by
    #1

    I am a beginner at using OpenGL with Qt, and was wondering where the functions of the module is located. I have done a few tutorials, and there are many steps like linking the "opengl" module with the qmake file by having this:

    @QT += opengl@

    But, I was also wondering if the definitions were in QGLWidget. Any ideas?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Valiance
      wrote on last edited by
      #2

      The documentation at http://qt-project.org/doc/qtopengl.html covers all of the classes that Qt provides for this module.

      While it may not cover your specific use case, a lot can be done by simply swapping out a normal QWidget with a QGLWidget defined in the QGLWidget header (i.e. For a lot of cases that's all you need to include). Obviously the other classes provide additional functionality which can be accessed by including their respective headers.

      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