[Qt-interest] Go to line QPlainText
matteo
matteo.ceruti at task84.it
Fri Dec 11 14:01:32 CET 2009
Probably I not explain correctly my problem.
I need to go at n-th line of my Text. I must implemente the function
GoToLine(const int lineNumber)
{
}
Thanks
Teo
Bastian Bense wrote:
> Try
>
> myPlainTextEdit->moveCursor(QTextCursor::Start);
> myPlainTextEdit->ensureCursorVisible();
>
>
> Am 11.12.2009 um 12:07 schrieb matteo:
>
>
>>Ii need to go directly at beginning of a line of a PlainText.
>>I should use moveCursor n-th times. Is ther a directly and faster
>>possibility?
More information about the Qt-interest-old
mailing list