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

setGraphicsApi :OpenGLRhi. QML application resizing flickers and is sometimes blank

    XMLWordPrintable

Details

    • macOS
    • 3cf2c5d63cc4abbe4764e0f8c331d7d32b9caa63 (qtbase/6.2), c1899ca310cbd3a4ce5e8454a01a22638beb8d73 (qtbase/dev)

    Description

      When resizing QML application, the contents flickers and the window can be blank sometimes. It also happens that the window is blank when started.
      (See qtbug96405.zip-video.mov)

      Adding this to main.cpp

      setGraphicsApi(QSGRendererInterface::OpenGLRhi);
      

      and QML application is as simple as

      ApplicationWindow {
          width: 360
          height: 240
          visible: true
          Button
          {
              anchors.centerIn: parent
              text: "Hello my world"
          }
      }
      

      How to reproduce
      Use qtbug96405.zip and try to resize.

      Attachments

        1. qtbug96405.zip
          3 kB
          Nahomi Gröhn
        2. qtbug96405-video.mov
          610 kB
          Nahomi Gröhn

        Issue Links

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

          Activity

            People

              lagocs Laszlo Agocs
              nagrohn Nahomi Gröhn (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes