Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
6.5
Description
Code like
import QtQuick Window { id: win width: 640 height: 480 visible: true title: "Sandbox" Rectangle { width: 100 height: 100 color: "green" MouseArea { anchors.fill: parent cursorShape: enabled && Qt.styleHints.useHoverEffects ? Qt.PointingHandCursor : Qt.ArrowCursor } } }
makes the compiler claim
Warning: main.qml:28:55: Property "useHoverEffects" not found on type "QObject" [missing-property] cursorShape: enabled && Qt.styleHints.useHoverEffects ? Qt.PointingHandCursor : Qt.ArrowCursor ^^^^^^^^^^^^^^^ Warning: main.qml:28:55: Could not compile binding for cursorShape: Cannot load property useHoverEffects from QObject of QtObject::styleHints with type QObject. [compiler] cursorShape: enabled && Qt.styleHints.useHoverEffects ? Qt.PointingHandCursor : Qt.ArrowCursor ^^^^^^^^^^^^^^
.
Attachments
Issue Links
- is duplicated by
-
QTBUG-116288 qmllint: warning about mousePressAndHoldInterval property of Qt.styleHints
- Closed
Gerrit Reviews
For Gerrit Dashboard: QTBUG-109381 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
512333,1 | WIP: add StyleHint singleton | dev | qt/qtdeclarative | Status: NEW | -2 | 0 |