- 
    
Bug
 - 
    Resolution: Unresolved
 - 
    
P2: Important
 - 
    None
 - 
    6.8.5, 6.9.2
 - 
    None
 - 
    macOS 15.6.1
 
When applying a QTextListFormat with a very large start value (e.g. 12345678) to a list in either QTextEdit (C++) or TextEdit (QML), the list item number renders far outside the visible bounds of the editor. This causes layout issues, misalignment, and in some cases, the list number may not be visible at all.(See attached screen)
Qml example:
TextEdit {
    width: 400
    height: 200
    textFormat: Text.RichText
    text: "<ol start='12345678'><li>Item text</li></ol>"
}
Widgets example:
QTextEdit *editor = new QTextEdit; QTextDocument *doc = new QTextDocument; editor->setDocument(doc); editor->setText("Item text"); QTextCursor cursor(doc); QTextListFormat listFormat; listFormat.setStyle(QTextListFormat::ListDecimal); listFormat.setStart(12345678); cursor.createList(listFormat); editor->setWindowTitle("QTextDocument Example"); editor->resize(400, 200); editor->show();