May 2019
Intermediate to advanced
542 pages
13h 37m
English
Our invoice terms will be presented as an unordered bullet list. Ordered and unordered lists can be inserted into QTextDocument using the cursor's insertList() method, as follows:
cursor.setPosition(terms_frame.lastPosition()) cursor.insertText('Terms:', label_format) cursor.insertList(qtg.QTextListFormat.ListDisc)
The argument for insertList() can be either a QTextListFormat object or a constant from the QTextListFormat.Style enum. In this case, we're using the latter, specifying that we want a list with disc-style bullets.
Now, we'll ...
Read now
Unlock full access