[Qt-interest] Using QTextBlockFormat::setTabPositions
Maximilien Renard
iixamaxii at gmail.com
Mon May 11 00:17:11 CEST 2009
Hi there,
I've not been able to figure out how to use the setTabPositions method
of QTextBlockFormat. In short, what I'm trying to do is following :
I want to create a QTextDocument created by my app using data from a
database. So far, no problem. I'm adding each entry of the database in
a new block of a QTextList (for example : 1. AUTHOR, title). When
creating the document in word (openoffice actually but it makes no
difference), I'm using the little signs located at the intersection of
the two rulers which enable me to, when hitting TAB, move the cursor
to the right border of current line and write text which is then
clampsed to the right border and stays (if there is space enough) on
the same line.
Looks like this :
1. AUTHOR, title TAAAAAAAAAAAAAAAB 15 €
2. AUTHOR, title, blalbllalblalbalblalbalbalbalblalbalblablalbalblal
blalbalba TAAAAAAAAAAAAAAAB 20 €
How can I achieve this ?
By the way, I've got another question, is it possible to choose the
initial index of an ordered list ?
Thanks a lot !
Regards,
Maximilien
More information about the Qt-interest-old
mailing list