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

White background flicker in Material Dialog with popupType: Popup.Window

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8
    • None
    • Linux/Wayland, Windows

      Certain styles have issues with popupType.Window on different platforms.

      The code below has the following problems:

      • White flicker when popup is opened (very briefly).
      • White flicker when popup is closed (definitely noticeable)
        • There's no flicker when closing via Native Window Decoration
        • There's sometimes a flicker when closing via dialog button box
      • Both Native enter and Material enter transitions are applied
      • Both Native exit and Material exit transitions are applied
        • If we configure enter and exit as null, that problem goes away. The background flicker still persists

       

      I've also attached a video showing the problem.

      Here's the code:

      import QtQuick
      import QtQuick.Controls.Material
      
      ApplicationWindow {
          width: 1280
          height: 720
          visible: true
          title: "Dialog White Flicker Bug"
      
          Material.theme: Material.Dark
      
          Button {
              text: "Open Dialog"
              anchors.centerIn: parent
              onClicked: dialog.open()
          }
      
          Dialog {
              id: dialog
      
              anchors.centerIn: parent
              contentWidth: 600
              contentHeight: 450
              modal: true
              title: "Test Dialog"
      
              popupType: Popup.Window
      
              contentItem: Label {
                  text: "Close this dialog and watch for white flicker"
                  horizontalAlignment: Text.AlignHCenter
                  verticalAlignment: Text.AlignVCenter
              }
      
              standardButtons: Dialog.Ok
          }
      }
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            trin94 Elias Müller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes