Qt-interest Archive, February 2007
QTextLine::textStart() function
Message 1 in thread
Hi,
have anybody in list ever used a QTextLine::textStart() function? After
day of debugging, I still do not know what is the number that it returns
good for. At least it is not what is written in documentation:
"Returns the start of the line from the beginning of the string passed to
the QTextLayout."
I need this function a lot and I'm afraid that function or documentationit
is still buggy.
Fanda
--
[ signature omitted ]
Message 2 in thread
On 21.02.07 20:58:46, Fanda Vacek wrote:
> have anybody in list ever used a QTextLine::textStart() function? After day of
> debugging, I still do not know what is the number that it returns good for. At
> least it is not what is written in documentation:
>
> "Returns the start of the line from the beginning of the string passed to the
> QTextLayout."
>
> I need this function a lot and I'm afraid that function or documentationit is
> still buggy.
I didn't use this stuff yet, but as far as I understand the
documentation it should return the number of characters between the
start of the line and the start of the string that was set on the
QTextLayout.
It would help if you could provide a small test application that
reproduces the problems you see.
Andreas
--
[ signature omitted ]
Message 3 in thread
Hi,
I've found, that problem results from '\n' line breaks in text,
QTextLayout withouth textOption() set, ignores them but
painter->drawText(bounding_rect, 0, text) not. I thing that setting the
right options can solve problem, which is not in textStart() function.
Thank you and sorry for noise.
fanda
On Wed, 21 Feb 2007 21:39:53 +0100, Andreas Pakulat <apaku@xxxxxx> wrote:
> On 21.02.07 20:58:46, Fanda Vacek wrote:
>> have anybody in list ever used a QTextLine::textStart() function? After
>> day of
>> debugging, I still do not know what is the number that it returns good
>> for. At
>> least it is not what is written in documentation:
>>
>> "Returns the start of the line from the beginning of the string passed
>> to the
>> QTextLayout."
>>
>> I need this function a lot and I'm afraid that function or
>> documentationit is
>> still buggy.
>
> I didn't use this stuff yet, but as far as I understand the
> documentation it should return the number of characters between the
> start of the line and the start of the string that was set on the
> QTextLayout.
>
> It would help if you could provide a small test application that
> reproduces the problems you see.
>
> Andreas
>
--
[ signature omitted ]