Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Does Qt4.6 and later version only support openGL2 to do openGL rendering?

Does Qt4.6 and later version only support openGL2 to do openGL rendering?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 5 Posters 3.8k 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.
  • W Offline
    W Offline
    whoknows
    wrote on last edited by
    #1

    is that true? I find there is a check in a project to check painter engine if qt version is larger than 4.6.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      I have never checked the specifics requirements on OpenGL versions in Qt, but the OpenGL 2.0 specification is from 2004... After 6 years a project should be allowed to depend on it, shouldn't it?

      1 Reply Last reply
      0
      • W Offline
        W Offline
        whoknows
        wrote on last edited by
        #3

        yes, of course it could be.

        but does Qt 4.6 or later support to use openGL1.x to do rendering?

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          yan_
          wrote on last edited by
          #4

          Hi.

          Opengl version is defined by your 3D card drivers not by Qt. You can use all OpenGl version with Qt.

          You can use OpenGl 1.x function with higher OpenGl Version. Normally OpenGl version are retro-compatible.

          What is your problem?

          "QExtend":http://www.developpez.net/forums/d906429/c-cpp/bibliotheques/qt/naissance-projet-qextend/
          "QEXtend Video":http://www.youtube.com/user/QEx...

          1 Reply Last reply
          0
          • J Offline
            J Offline
            jorj
            wrote on last edited by
            #5

            qt definately uses shaders a lot to render with opengl... not sure if it depends on them...

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

              Yes, by default you will get only 1.1 !!

              But if you will provide 2.1 declarations Qt will accept it. (so it is only including headers to get 2.1)

              Docs states that You can also get any version supported by graphic drivers by QGLFormat::setVersion() and QGLFormat::setProfile(). But there is not a single doc covering e.g. how to get tessel shaders into QGLShader, etc.
              So it should be posibble to run higher than 2.1 but you will have to provide some classes for your self.

              And You can freely use OpenGL ES 2.0!! (And if you want to cross-develop on mobile and desktop it is best option, and Qt is ready for it).

              [quote author="Tobias Hunger" date="1284913349"]I have never checked the specifics requirements on OpenGL versions in Qt, but the OpenGL 2.0 specification is from 2004... After 6 years a project should be allowed to depend on it, shouldn't it?[/quote]
              No it is not!
              You have to have hardware (easily meat), but also drivers (unlikely but possible problems), and have to manage extensions (MS still do not support easy 2.1 context creation).

              And for newer specifications (we have 3.3 and 4.1 !!!!) even more problems arise like lack of true cross platform support (4.x only on linux and win 3.x troublesome on mac).

              And sad but true Nokia and qt team do not look too excited about newest OpenGL specs either.

              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