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 3 Example with Qt 4.7 ?
QtWS25 Last Chance

OpenGL 3 Example with Qt 4.7 ?

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 8.2k 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.
  • H Offline
    H Offline
    hudrima1
    wrote on last edited by
    #1

    Hi,
    I want to migrate my OpenGL 2.1 Qt application into a OpenGL 3.x application.
    After setting:

    QGLFormat fmt;
    fmt.setProfile(QGLFormat::CoreProfile);

    glGetString(GL_VERSION) still reports a 2.1 context.

    After an additional:

    fmt.setVersion(3,2);

    glGetString(GL_VERSION) reports a 3.2 context but the application crashes.

    Does anyone know a real 3.x OpenGL application example with Qt 4.7 or older?

    Thanks
    Marcus

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Smar
      wrote on last edited by
      #2

      I don't know if this is any help, but certain person had this kind of problem with Qt Jambi.

      "http://strattonbrazil.blogspot.com/2010/10/incorporating-scala-java-sbt-jogl-qt.html":http://strattonbrazil.blogspot.com/2010/10/incorporating-scala-java-sbt-jogl-qt.html

      [edit: fixed link / chetankjain]

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

        Hi, What is your dev platform ???

        How do you link OpenGL, and include headers?

        Are you shour that you do not use deprecated functions? (this should and must crash your app!)

        Can you build and run some OGL 3 sample apps ? Like from g-truc.net ?

        1 Reply Last reply
        0
        • H Offline
          H Offline
          hudrima1
          wrote on last edited by
          #4

          Hi,
          my dev platform is Windows7 MSVS2008.
          Yes, I even finished the migration to OpenGL core profile.
          I use now GLFW for the context creation and the gui interface.
          For the OpenGL I use gl3w for the GL3 header and the function binding.
          Of course GLFW is not an Qt replacement but at least I can check now
          my core profile compatibility.
          I still look for a Qt 4.7 example that creates a valid GL3 core profile app.
          Regards
          Marcus

          1 Reply Last reply
          0
          • O Offline
            O Offline
            Olorin5800
            wrote on last edited by
            #5

            Tried it on my pc on some of the opengl example from qt sources and it creates the context ok and application runs normal also glGetString(GL_VERSION) reports a 3.3 context
            (had to use QGLFormat::CompatibilityProfile on some examples but even with QGLFormat::CoreProfile the application runed but some textures where missing) try and set your profile to CompatibilityProfile and see if it still crashes

            [quote author="hudrima1" date="1287059793"]Hi,
            I want to migrate my OpenGL 2.1 Qt application into a OpenGL 3.x application.
            After setting:

            QGLFormat fmt;
            fmt.setProfile(QGLFormat::CoreProfile);

            glGetString(GL_VERSION) still reports a 2.1 context.

            After an additional:

            fmt.setVersion(3,2);

            glGetString(GL_VERSION) reports a 3.2 context but the application crashes.

            Does anyone know a real 3.x OpenGL application example with Qt 4.7 or older?

            Thanks
            Marcus[/quote]


            My programs never have bugs, they just develop random features.

            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