[Qt-interest] Using QTextBlockFormat::setTabPositions
Maximilien Renard
iixamaxii at gmail.com
Fri May 15 22:20:31 CEST 2009
Please, I desperatly need help !
2009/5/11 Maximilien Renard <iixamaxii at gmail.com>:
> Let's try this with a little image :
> www.ixamaxi.be/images/problem4.png . I'd like to have this result when
> creating my QTextDocument. How is this possible ?
>
> Thanks a lot :)
>
> Regards,
>
> Maximilien
>
> 2009/5/11 Maximilien Renard <iixamaxii at gmail.com>:
>> 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