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

Widgets which don't paint their entire bounds show black areas when rendered above a QGraphicsView with a QGLWidget viewport

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.5, 5.2.0
    • None
    • Tested on Windows 7 and Ubuntu 12.04

    Description

      #include <QtGui>
      
      #include <QGLWidget>
      
      #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
      #include <QtWidgets>
      #endif
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
      
          QGraphicsView window;
          window.setScene(new QGraphicsScene());
          window.setViewport(new QGLWidget(QGLFormat(QGL::SampleBuffers)));
          window.setViewportUpdateMode(QGraphicsView::FullViewportUpdate);
      
          QWidget *emptyWidget = new QWidget(&window);
      
          window.resize(400, 400);
          window.show();
      
          return app.exec();
      }
      

      Attachments

        1. gl-4.8.png
          gl-4.8.png
          2 kB
        2. gl-5.2.png
          gl-5.2.png
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jolind Jorgen Lind
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes