Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.12.0, 5.12.1, 5.13.0 Alpha 1
-
None
-
OS: Windows 10 1803
QtQuick 2.12+
QtDialog 1.3
Qt.labs.platform 1.1
-
-
38504041148f2d1cffea6520ea448dd4171adb0b (qt/qtbase/5.12)
Description
Summary describes it already. If you open a QML Dialog with a MenuItem derived from qt.labs.platform, the buttons in the opened Dialog require two mouse clicks to trigger with all Qt versions earlier than 5.12.x (latest working version is Qt 5.11.3).
Tested on Windows 10 only.
Relevant qml file:
import QtQuick 2.13 import QtQuick.Window 2.13 import Qt.labs.platform 1.1 as Platform import QtQuick.Dialogs 1.3 Window { visible: true width: 640 height: 480 title: qsTr("Dialog Focus Bug") Platform.MenuBar { id: menuBar Platform.Menu { id: fileToolButton title: "File" Platform.MenuItem { id: importMenuItem text: "Settings" onTriggered: dlg.open() } } } Dialog { id: dlg title: "Settings" standardButtons: StandardButton.Ok | StandardButton.Cancel } }