-
Bug
-
Resolution: Unresolved
-
Not Evaluated
-
None
-
6.8
-
None
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 } }