Skip to content

QQuickTextInput: update cursor rectangle after padding changed

Why?

This fixes an issue we found when merging frameworks/kirigami!465 (merged) on mobile device. The cursor of the text input is not updated to the correct position unless we do some 'hack' in the qqc2 theme. I have a hack for that in plasma/qqc2-breeze-style!28 (closed), but we can't do the same for each qqc2 theme so it's better to properly fix it in Qt.

Original commit description

The position of cursor delegate needs to be updated when we change padding, otherwise it will be in a wrong position.

Fixes: QTBUG-91867 Pick-to: 5.12 5.15 6.0 6.1 Change-Id: I89ca84fe893ebf517ab67890196eede14a4055d7 Reviewed-by: Shawn Rutledge shawn.rutledge@qt.io (cherry picked from commit d98694c4)

Merge request reports