Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
6.8.0
-
None
Description
import QtQuick import QtQuick.Window import QtQuick.Controls ApplicationWindow { id: root visible: true height: 480 width: 640 Text { anchors.bottom: parent.bottom text: "Current focus: " + (root.activeFocusControl as Control) } Row { Repeater { model: 16 Button { required property int index text: index } } } }
The documentation mentioned "The following members are inherited from Control." for Button, hinting that it should inherit from Control. However that doesn't seem to be the case. I wanted to accept Control to call focusReason on whatever Control gets the current focus, but I can't due to this limitation.
Attachments
Issue Links
- relates to
-
QTBUG-88222 Property: Assignment of inherited object regression
- Closed
-
QTBUG-129850 Clarify Quick Controls and Quick Template
- Closed