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. [SOLVED] No -graphicssystem opengl build and QGLWidget together?
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] No -graphicssystem opengl build and QGLWidget together?

Scheduled Pinned Locked Moved Installation and Deployment
5 Posts 2 Posters 5.4k Views 1 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.
  • V Offline
    V Offline
    VitorAMJ
    wrote on last edited by
    #1

    I had some problems with Qt 4.7.3 x64 build with msvc2010 -graphicssystem opengl. I was using Windows 7 64 bits. Using and avoiding QGLWidget in simple programs.
    => Menus refresh problems
    =>QtGui unhandled exceptions (if the program had the class QGLWidget instanced)

    Magically, simply building Qt again without -graphicssystem opengl (Qt raster), removed the problems.

    As I did not see BIG WARNING LIGHTS in the configure --help that Qt with opengl does not support QGLWidget (?!), I leave this warning to all here.

    What I don't understand is why am I not able to use QGLWidet and the graphicsystem option for opengl together? After all, QGLWidget is a class from Qt that uses opengl...

    1 Reply Last reply
    0
    • B Offline
      B Offline
      baysmith
      wrote on last edited by
      #2

      The graphics system option sets the graphics backend (see http://doc.qt.nokia.com/4.7/qapplication.html#setGraphicsSystem), but the opengl backend is experimental. Using the opengl backend means that all widgets are rendered through OpenGL. However, since it is experimental, there may be rendering errors (like the menu refresh problems and unhandled exceptions).

      Nokia Certified Qt Specialist.

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VitorAMJ
        wrote on last edited by
        #3

        Thanks. Do you know if -qgraphicssystem opengl build is going to support QGLWidget`s?
        I saw somewhere (Qt-BUG report, probably) that it will not be supported.

        1 Reply Last reply
        0
        • B Offline
          B Offline
          baysmith
          wrote on last edited by
          #4

          I would not expect it to ever happen for Qt 4. However, with Qt 5, OpenGL will be required. So, although it may not be the current OpenGL paint engine, some OpenGL backend will be the default graphics system.

          See also:
          http://labs.qt.nokia.com/2011/05/09/thoughts-about-qt-5/
          http://labs.qt.nokia.com/2011/05/11/responses-to-qt-5/

          Nokia Certified Qt Specialist.

          1 Reply Last reply
          0
          • V Offline
            V Offline
            VitorAMJ
            wrote on last edited by
            #5

            Thanks for the links Bradley. Nailed it for me. :)

            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