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

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -