[Qt-interest] scroll text to a position

Ivo Anjo knuckles at gmail.com
Sun May 3 15:08:35 CEST 2009


Have you tried doing something like

QTextCursor tc = textEdit->textCursor();
tc.setPosition(position);
textEdit->setTextCursor(tc)

I'm not sure if this is what you're looking for, but at least playing with a
QTextCursor seems to me the way to go.

Ivo Anjo

On Sun, May 3, 2009 at 1:43 PM, sathya tej <ragesathya at gmail.com> wrote:

> Hello guys,
>
> Please help me with your valuable suggestions.
>
> I am badly in need of help.
>
> Thank You.
>
>
>
> On Sun, May 3, 2009 at 4:58 PM, sathya tej <ragesathya at gmail.com> wrote:
>
>> Hello All,
>>
>> I am using a QTextEdit. I am required to scroll through text to a
>> specified position using my code.
>>
>> Is this possible? if not please suggest me a way to move to a specified
>> position in an already opened textEdit.
>>
>>
>> Thank You,
>>
>> Sathya.
>> Qt 4.3.4
>> ubuntu 8.04
>>
>> --
>> whatever happens happens for GOOD
>>
>
>
>
> --
> whatever happens happens for GOOD
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090503/7fa4bacd/attachment.html 


More information about the Qt-interest-old mailing list