Details
-
Task
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.2
-
None
Description
seen on IRC:
<Murat> Hi all ! We have significant number of text fields in out quick scene and from what I can observe the renderer is not able to batch them properly due to the clipping that comes with TextField that we can't get rid of :
<Murat> https://code.woboq.org/qt5/qtquickcontrols2/src/quicktemplates2/qquicktextfield.cpp.html#911
<Murat> We can use TextInput which doesn't have the clipping but then, as you can imagine, the text is drawn beyond the borders of our text field boxes
<Murat> Any ideas how I can fix this ?
<Murat> Any alternatives ?
This needs confirmation. If true, it could be another use for viewports as in https://codereview.qt-project.org/c/qt/qtdeclarative/+/282970 : maybe we don't need to clip if we limit the characters rendered to the rectangular area available. On the downside, redoing text layout while scrolling horizontally (e.g. using arrow keys to move the text cursor) could also be expensive; but sounds worth investigating.
Attachments
Issue Links
- is required for
-
QTBUG-79878 TextField always clips
- Open
- relates to
-
QTBUG-68769 Setting RenderType on Controls 2 Textfield results in cut-off text on high-dpi displays
- Reported
-
QTBUG-90734 Make large content flickable
- Open
-
QTBUG-58724 A float value padding causes display issue
- Closed
-
QTBUG-74962 Text inside of TextInput is rendered on top and beyond the border even with specified padding
- Reported
-
QTBUG-98355 SpinBox text not clipped when larger than available width
- Closed
-
QTBUG-84280 TextArea inside Flickable - cursor does not appear with LayoutMirroring.enabled
- Closed
- replaces
-
QTBUG-21969 Text that is wider than TextInput element doesn't get clipped by default
- Closed