Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. How to check OpenGL version?
Servers for Qt installer are currently down

How to check OpenGL version?

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 1.9k Views 2 Watching
  • 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.
  • A Offline
    A Offline
    Aronax
    wrote on 29 May 2019, 09:02 last edited by
    #1

    Hello, I have program build with qml controls 2. Minimum PC requirements to run this program are Windows Vista (I think) and OpenGL 2.0 (controls 2 need that). People which have lower OpenGL version still sometimes can open program, but it opens incorectly(empty screen is visible with app frame). How to prevent that? How to check OpenGL version after program starts and show error message? I read somewehre that: The only way to know if your OpenGL implementation supports a particular version is to attempt to create a context with that version and see if you get a valid context as a result

    J 1 Reply Last reply 29 May 2019, 23:46
    0
    • A Aronax
      29 May 2019, 09:02

      Hello, I have program build with qml controls 2. Minimum PC requirements to run this program are Windows Vista (I think) and OpenGL 2.0 (controls 2 need that). People which have lower OpenGL version still sometimes can open program, but it opens incorectly(empty screen is visible with app frame). How to prevent that? How to check OpenGL version after program starts and show error message? I read somewehre that: The only way to know if your OpenGL implementation supports a particular version is to attempt to create a context with that version and see if you get a valid context as a result

      J Offline
      J Offline
      JKSH
      Moderators
      wrote on 29 May 2019, 23:46 last edited by
      #2

      @Aronax said in How to check OpenGL version?:

      How to check OpenGL version after program starts and show error message?

      See the top answer at https://stackoverflow.com/questions/15960463/programatically-determine-if-opengl-function-is-supported-by-hardware

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      1
      • A Offline
        A Offline
        Aronax
        wrote on 30 May 2019, 11:49 last edited by
        #3

        @JKSH Are there any QT functions to do that? I just want to point out, that I am not using OpenGL by my selft programmatically. I just simply use Qt Quick Controls 2.

        J 1 Reply Last reply 1 Jun 2019, 22:01
        0
        • A Aronax
          30 May 2019, 11:49

          @JKSH Are there any QT functions to do that? I just want to point out, that I am not using OpenGL by my selft programmatically. I just simply use Qt Quick Controls 2.

          J Offline
          J Offline
          JKSH
          Moderators
          wrote on 1 Jun 2019, 22:01 last edited by
          #4

          @Aronax said in How to check OpenGL version?:

          Are there any QT functions to do that? I just want to point out, that I am not using OpenGL by my selft programmatically. I just simply use Qt Quick Controls 2.

          AFAIK, there is no function in Qt to give you the OpenGL version.

          I've never tried this, but you could play around with QOpenGLFunctions and see if you can deduce the version by calling its functions (maybe some feature is not available in OpenGL <2.0, or maybe some function calls will fail): https://doc.qt.io/qt-5/qopenglfunctions.html#openGLFeatures

          Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

          1 Reply Last reply
          1

          1/4

          29 May 2019, 09:02

          • Login

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