Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.12.9
-
None
-
-
d98694c4023881673259ba040c10df7e71ec3d37 (qt/qtdeclarative/dev) 84fd42a91314b04448931dd1473eef7a9b5c3931 (qt/qtdeclarative/6.1) 9d426d0f0352808d04d8e97f97cea668e3f0bba4 (qt/qtdeclarative/6.0) b7f46486ac (qt/tqtc-qtdeclarative/5.15-opensource)
Description
When I use a cursorDelegate for a TextInput item, and I change the left padding after component creation, the cursor position does not change.
The issue does not occur if I use the default TextInput cursor.
Here is a piece of code to reproduce the issue. Click on the green rectangle to change left padding : nothing occur about the cursor. Now comment out the cursorDelegate line and click again on the green rectangle : the cursor position changes.
Rectangle { width: 150; height: 50; border.width: 1 TextInput { id: textInput anchors.fill: parent anchors.margins: 4 focus: true leftPadding: 10 cursorDelegate: Rectangle { width: 2; color: "#00f" } } } Rectangle { x: 200; width: 50; height: 50; color: "#4c4" MouseArea { anchors.fill: parent; onClicked: textInput.leftPadding = 50 } }
Attachments
For Gerrit Dashboard: QTBUG-91867 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
341856,6 | QQuickTextInput: update cursor rectangle after padding changed | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
343762,2 | QQuickTextInput: update cursor rectangle after padding changed | 6.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
343783,2 | QQuickTextInput: update cursor rectangle after padding changed | 6.1 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
343784,3 | QQuickTextInput: update cursor rectangle after padding changed | 5.12 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
343785,2 | QQuickTextInput: update cursor rectangle after padding changed | tqtc/lts-5.15 | qt/tqtc-qtdeclarative | Status: MERGED | +2 | 0 |