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
-
- In Progress
-
- relates to
-
QTBUG-116636 qmltc: Add ability to mark Q_PROPERTY() as FINAL
-
- Reported
-
-
QTBUG-114161 QML FolderListModel: Give its writable properties NOTIFY signals
-
- Closed
-
-
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...
For Gerrit Dashboard: QTBUG-108739 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
484341,6 | Replace Q_PROPERTY shadowing with virtual methods in private classes | dev | qt/qtdeclarative | Status: NEW | +1 | 0 |
480201,14 | Make properties in Qt Quick FINAL to prevent shadowing | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480202,7 | Make properties in Qt Quick Controls FINAL | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480203,11 | Make properties in Qt Quick Layouts FINAL | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480204,10 | Make properties in the particles module FINAL | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480205,6 | Make properties in the Qt Labs module FINAL | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480206,10 | Make some properties in the effects module FINAL | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480207,11 | Make some properties in Qt Quick Shapes FINAL | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
480586,4 | Replace Q_PROPERTY shadowing for font with polymorphism | dev | qt/qtdeclarative | Status: DEFERRED | +1 | 0 |
481867,2 | Make some properties in the effects module FINAL | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
481868,2 | Make some properties in Qt Quick Shapes FINAL | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
482994,2 | Make properties in Qt Quick Layouts FINAL | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
482999,2 | Make properties in the particles module FINAL | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
483357,2 | Make properties in Qt Quick FINAL to prevent shadowing | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
484577,3 | QML models: Make most properties FINAL to prevent accidental shadowing | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
485448,2 | QML models: Make most properties FINAL to prevent accidental shadowing | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |