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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -