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

QGraphicsView->setViewport(QOpenGLWidget*) produces blank black window if OpenGL CoreProfile selected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.6.3
    • GUI: OpenGL
    • None
    • Windows 10, Visual Studio 2015, NVidia 1080 GTX, latest WHQL drivers (388.13)

    Description

      1. Start with padnavigator example
      2. Add this code in main.cpp before QApplication inited

          QSurfaceFormat fmt;
          fmt.setProfile(QSurfaceFormat::CoreProfile);
          fmt.setVersion(3, 3);
          QSurfaceFormat::setDefaultFormat(fmt);

      (this is the recommended way, got from Qt blog GL ES3 post, but simplified because desktop OpenGL is used)

      Padnavigator window becomes blank and black, no items drawed.

      Is there any other way to use QGraphicsView + OpenGL core profile? Unfortunately, on OS X highest compatibility profile version is 2.1 while we need 3+ in our app (multiplatform Windows/OS X)

      Attachments

        1. qtbug64634_repro.diff
          1 kB
        2. log.txt
          17 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes