[Interest] programatically adding a list to a QTextDocument

Graham Labdon Graham.Labdon at avalonsciences.com
Fri Jan 13 13:10:05 CET 2012


Hi
I want to add a QTextList to a document.
I see that I can do this using QTextCursor::insertList.
This returns a pointer to the new list but I cannot see a way to  add items to the list.
QTextList has an 'add' method that takes a QTextBlock but I cannot see how to create a text block with the desired text for the list entry

Any help is appreciated
Graham

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120113/bc5ba90d/attachment.html>


More information about the Interest mailing list