c++ - Not editable text in QTextEdit -


replaced text this

qtextcursor cursor = mpeditor->textcursor();  cursor.begineditblock();  mpeditor->insertplaintext( intxtreplace );  cursor.endeditblock() 

visually in order. if try edit text, it's nonsense, characters superimposed, can not add anything. in mistakes?

problem not reading documentation.

see qplaintextedit::readonly.

also if using text cursor use modify document:

qtextcursor cursor = mpeditor->textcursor(); cursor.begineditblock(); cursor.select(qtextcursor::document); cursor.inserttext(intxtreplace); cursor.endeditblock() 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -