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. [Solved] Smooth integration of OpenGL 4.x with Qt...
QtWS25 Last Chance

[Solved] Smooth integration of OpenGL 4.x with Qt...

Scheduled Pinned Locked Moved General and Desktop
6 Posts 4 Posters 8.3k 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.
  • P Offline
    P Offline
    przemo_li
    wrote on last edited by
    #1

    How to do that? How to change code of Qt if current version do not integrate with OpenGL version I want to use?

    And do you know any good docs about OpenGL 3.x|4.x and Qt?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      RobotR
      wrote on last edited by
      #2

      Qt wraps OpenGL1.1 interface.

      Just include and link to the openGL version you want to use.

      1 Reply Last reply
      0
      • P Offline
        P Offline
        przemo_li
        wrote on last edited by
        #3

        Can You be more specific ?

        Where to include headers of OGL3|4? Qt have class that create context for OGL, how to change it to OGL3|4?

        Linking will be probable the simplest of steps.

        1 Reply Last reply
        0
        • P Offline
          P Offline
          przemo_li
          wrote on last edited by
          #4

          Oh and I want to use "Core Profile"!

          1 Reply Last reply
          0
          • D Offline
            D Offline
            dangelog
            wrote on last edited by
            #5

            [quote author="przemo_li" date="1281463235"]How to do that? How to change code of Qt if current version do not integrate with OpenGL version I want to use?

            And do you know any good docs about OpenGL 3.x|4.x and Qt?[/quote]

            This does not make any sense. Qt uses and exposes the version reported by the OpenGL renderer you have; you can use QGLFormat::setVersion() to try opening a context with a specific version.

            Software Engineer
            KDAB (UK) Ltd., a KDAB Group company

            1 Reply Last reply
            0
            • Z Offline
              Z Offline
              ZapB
              wrote on last edited by
              #6

              Sorry to necro post but this thread came up in a search and it's still un-solved. So here's the "solution":http://developer.qt.nokia.com/wiki/How_to_use_OpenGL_Core_Profile_with_Qt

              Nokia Certified Qt Specialist
              Interested in hearing about Qt related work

              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