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

Windows/Desktop OpenGL: QGLWidget has transparent background instead of a full opaque one as in 5.1.1 if configured with QGL::AlphaChannel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.0 Alpha
    • GUI: OpenGL
    • None
    • Windows 7 Ultimate 64Bit
      Intel Core i7-2720QM with NVidia Quadro 3000M
      Qt 5.2 Alpha built with VS2012 Express in 64Bit
      Desktop OpenGL

      Compiled with 5.2 Alpha the window is fully transparent and you can see the desktop.

      Another strange effect happens if you change the window state of the widget to full screen (Qt::WindowFullScreen). It turns to full opaque black (as in 5.1.1)

      Code to reproduce :

      int main(int argc, char *argv[]) {
         QApplication a(argc, argv);
      
         QGLFormat glFormat(QGL::Rgba | QGL::DoubleBuffer | QGL::DepthBuffer | QGL::AlphaChannel);
         QGLWidget widget(glFormat, NULL, NULL, 0);
      
         widget.activateWindow();
         widget.show();
      
         return a.exec();
      }
      

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

            peppe Giuseppe D'Angelo
            dirkneuber Dirk Neuber
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes