V
V
Victor Marquardt2017-08-20 20:31:32
Qt
Victor Marquardt, 2017-08-20 20:31:32

Why is text not being edited after replacement (QTextEdit)?

I replace text in QTextEdit like this

QTextCursor cursor = mpEditor->textCursor();

cursor.beginEditBlock();

mpEditor->insertPlainText( inTxtReplace );

cursor.endEditBlock();

visually everything is fine. But if you try to edit the text, nonsense happens, characters are superimposed, nothing can be added, what did I miss? maybe update it somehow?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question