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.
also if using text cursor use modify document:
qtextcursor cursor = mpeditor->textcursor(); cursor.begineditblock(); cursor.select(qtextcursor::document); cursor.inserttext(intxtreplace); cursor.endeditblock()
Comments
Post a Comment