Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-34376

Windows/Desktop OpenGL: QGLWidget based main window is invisible if configured with format QGL::AlphaChannel and Qt::FramelessWindowHint

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.0 RC1
    • 5.1.1, 5.2.0 Beta1
    • GUI: OpenGL
    • None
    • Windows 7 Ultimate 64Bit
      Intel Core i7-2720QM with NVidia Quadro 3000M
      Qt 5.2 Beta 1 VS2012 Express in 64Bit Desktop OpenGL (Offline Installer)
    • 44e68b90266336d3d46279eddcbb2a4a775f0d2a

    Description

      A QGLWidget based main window completely disappears from the screen if configured like this:

      QGLFormat glFormat(QGL::Rgba | QGL::DoubleBuffer | QGL::DepthBuffer | QGL::AlphaChannel);
      QGLWidget widget(glFormat, NULL, NULL, Qt::FramelessWindowHint);
      

      Attached is a small example.
      It draws a simple rectangle even to check something is visible if both options are not used together.

      This issue might be related to QTBUG-28531 but added to make sure it gets fixed for QGLWidget as well.

      Attachments

        1. qtbug34376.zip
          1 kB
        2. qtbug34376_1.zip
          2 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kleint Friedemann Kleint
              dirkneuber Dirk Neuber
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes