How to make changes in QTextDocument without creating undo item?
How to change QTextBlockFormat for particular blocks without pushing undo items to undostack?
Re: How to make changes in QTextDocument without creating undo item?
You can do so using QTextCursor.
Re: How to make changes in QTextDocument without creating undo item?
each time when i do QTextCursor::setBlockFormat, undo item is pushed into document internal undo stack.
a lot of QTextCursor::setBlockFormat calls push a lot of undo, which should not be pushed.
Re: How to make changes in QTextDocument without creating undo item?
Re: How to make changes in QTextDocument without creating undo item?
QTextCursor::setBlockFormat should not change undo stack