Sorri I missed one line to which you were referring,
QTextCursor cursor(TEXT->textCursor())
pos=cursor.position();
cursor.setPosition(pos,cursor.MoveAnchor);
TEXT->setTEXTCursor(cursor);
TEXT->setText(var);
Sorri I missed one line to which you were referring,
QTextCursor cursor(TEXT->textCursor())
pos=cursor.position();
cursor.setPosition(pos,cursor.MoveAnchor);
TEXT->setTEXTCursor(cursor);
TEXT->setText(var);
Ok, but if you read my post you see that its not the only problem.
Try what I suggested.
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Bookmarks