QTextCursor position out of range..
Unsolved
General and Desktop
-
i am using a plaintextedit to show files..unfortunately hen i try to add a new line, console says :
QTextCursor::setPosition: Position out of range
-
hi
how do you add the new line ?https://stackoverflow.com/questions/26578319/error-when-im-trying-to-set-text-in-qtextedit
-
@abdullahzubair109
but is next line valid ?
you can trymoveCursor(QTextCursor::Start);
moveCursor(QTextCursor::End);
and see if its then in a valid posistion. -