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

QOpenGLWidget is much slower than QGLWidget when used as QGraphicsView viewport

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.6.3
    • Fix Version/s: None
    • Component/s: GUI: OpenGL
    • Labels:
      None
    • Environment:
      Windows 10, Qt 5.6.3, Visual Studio 2015, NVidia 1080GTX video, up-to-date drivers,

      Description

      QGraphicsView with single QGraphicsRectItem on it:

          QGraphicsRectItem *ritem = new QGraphicsRectItem(0, 0, 200, 200);
          QPen pen(Qt::red);
          pen.setWidth(1);
          ritem->setPen(pen);
          gui.scene->addItem(ritem);
          gui.view->setSceneRect(ritem->boundingRect());

      When used with QGLWidget viewport:

          QGLFormat fmt;
            fmt.setVersion(3, 2);
            fmt.setProfile(QGLFormat::CompatibilityProfile);
            gui.glwidget = new QGLWidget(fmt,this);
            gui.view->setViewport(gui.glwidget);

      Everything is fine, eg. window resize is very smooth.

      When used with QOpenGLWidget viewport:

         gui.glwidget = new QOpenGLWidget(this);
      
         // Format is set on main()
           gui.view->setViewport(gui.glwidget);

       

      Everything becomes much slower, e.g. window resize looks like some ~500ms timer exists that delays widget update.

        Attachments

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

          Activity

            People

            Assignee:
            sletta Gunnar Sletta
            Reporter:
            pupkin2000 Vasily Pupkin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes