Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
4.7.0
-
None
-
bc4c5a2d9c5d3841948bc4443f2229d8d6ec0e95
Description
Changing autoScroll does not work properly, because the TextInput hscroll is calculated in the paint event and it is relative to previous values. This is very wrong. It makes it impossible to publish the value as a property, makes it not possible to test sensibly, and means that the value does not always update in a single frame.
The calculation of hscroll should be done when needed (eg. font change, text change, cursor position changed, autoscroll changed), or the feature should just be removed and a simple example provided of how to implement it oneself.
Attachments
Issue Links
- relates to
-
QTBUG-11168 TextInput's positionToRectangle() reports weird x-values
- Closed
- resulted from
-
QTBUG-11054 TextInput's xToPosition() does not work when there's more text than fit in the field
- Closed