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

Mac OS X and QML does not have a "perfect first frame"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 5.15
    • 5.2.0
    • GUI: Window management
    • None
    • Mac OS X
    • macOS

    Description

      Using the following QML file, the window will briefly flicker white before rendering the first frame. The render loop will handle the expose event synchronously and render a frame, so this would indicate that expose events are sent from the plugin either at the wrong time relating to when the window is actually being shown or that it the plugin does not flush after sending it.

      Rectangle {
          width: 400
          height: 400
          color: "black"
          Text {
              text: "Hello"
              anchors.centerIn: parent
              color: "white"
          }
      }
      

      If you have problems seeing it, change your desktop background to black to intensify the effect.

      Note: Adding texts to a QML file will add ~1 second to the startup time. If remove the text element, the startup is instant without flicker.

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            sletta Gunnar Sletta
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes