Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.5.2
-
None
Description
When calling setTextWidth on a QGraphicsTextItem that contains a multi-level HTML list that is wrapped in tables, the width of an indented list item will become constrained by another indented list item further down (see with_setTextWidth.png).
This does not occur if setTextWidth is not set (see no_setTextWidth.png), nor when the HTML string being used is input into an HTML editor (see html_editor_example.png). Putting a high enough value in setTextWidth to fit all the text does not appear to have any effect.
PySide6 example script included in qgraphicstextitem_html_setTextWidth.zip. Commenting out the call to setTextWidth shows the difference in behaviour.
Note: Could QTBUG-37185 be in some way related? It also involves text display issues when setTextWidth is called and rich text is set.
Attachments
Issue Links
- relates to
-
QTBUG-37185 QStaticText drawing is incorrect using rich text format
-
- Closed
-