Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.4.1, 6.5.0 RC
-
7be19a867 (dev), 2eee3f5b6 (dev), e31821795 (dev), b7813fc5e (dev), ecfefd8b9 (6.6), a32e1543d (6.6), b94931542 (dev), cb82b9f2a (dev), f8befff6d (6.6), 16d822ff3 (6.6), 351979e05 (dev), 702c36dfc (6.6), 9355b7173 (dev), 2af5cc0a7 (6.6)
Description
Accessing a DragHandler via property like
import QtQuick Window { id: root width: 640 height: 480 visible: true title: qsTr("Hello World") readonly property bool active: root.dragHandler.active property DragHandler dragHandler: DragHandler {} }
compiles with
Warning: main.qml:10:53: Could not compile binding for active: Member active of QQuickDragHandler of (component in /home/prcs1076/tmp/untitled/build/main.qml)::dragHandler with type QQuickDragHandler can be shadowed [compiler] readonly property bool active: root.dragHandler.active
In contrast to QTBUG-108599 the assigned type is defined. Maybe because it's active property is not FINAL.
Attachments
Issue Links
- is covered by
-
QTBUG-98320 Clean up overriding of Q_PROPERTY and Q_INVOKABLE
-
- Reported
-
- relates to
-
QTBUG-114161 QML FolderListModel: Give its writable properties NOTIFY signals
-
- Reported
-
-
QTBUG-116636 qmltc: Add ability to mark Q_PROPERTY() as FINAL
-
- Reported
-
-
QTBUG-114750 AppMan: Add "FINAL" to all Q_PROPERTY() declarations (unless they are meant to be overridden)
-
- Closed
-
- resulted in
-
QTBUG-114140 qmlsc complains about shadowing on the wrong type
-
- Closed
-
- mentioned in
-
Page Loading...