wagmare
21st March 2009, 13:51
hi friends ,
how can i set the cursor position of a readonly QTextEdit() after it get input to the top position ...
like this if the user click a button i am displaying a big paragraph but it showing only the tail position but i want to show the front text first ... i try
QTextCursor cursor(editor->textCursor());
cursor.movePosition(QTextCursor::Start);
but its not working ... i try setCursorPosition(1,1) but it says its not a member function ...
then i tried
resultTextEdit->cursorForPosition(startPos);
but i dont know how to set it ... please help ...
please help
how can i set the cursor position of a readonly QTextEdit() after it get input to the top position ...
like this if the user click a button i am displaying a big paragraph but it showing only the tail position but i want to show the front text first ... i try
QTextCursor cursor(editor->textCursor());
cursor.movePosition(QTextCursor::Start);
but its not working ... i try setCursorPosition(1,1) but it says its not a member function ...
then i tried
resultTextEdit->cursorForPosition(startPos);
but i dont know how to set it ... please help ...
please help