Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.6
Description
Originally noticed here. That comment explains the problem in greater detail.
Steps to reproduce:
- Click in mainTextArea to give it focus
- Open the Edit menu
- Select All is disabled
import QtQuick import QtQuick.Controls import QtQuick.Layouts ApplicationWindow { id: window width: 380 height: 320 visible: true menuBar: MenuBar { Menu { title: qsTr("Edit") Action { text: qsTr("Some Other Action") } Action { text: qsTr("Select All") shortcut: StandardKey.SelectAll enabled: mainTextArea.activeFocus onTriggered: mainTextArea.selectAll() } } } SplitView { anchors.fill: parent TextArea { SplitView.minimumWidth: 100 } TextArea { id: mainTextArea text: "Test text" SplitView.fillWidth: true } } }
Compare this to widgets' correct behaviour, which can be seen in e.g. Creator.
Attachments
Issue Links
- relates to
-
QTBUG-36332 QtQuick Controls: actions which depend on activeFocusItem are disabled when a menu is shown
- Closed