View Full Version : How to make changes in QTextDocument without creating undo item?
EnErGy[CSDX]
3rd May 2008, 16:16
How to change QTextBlockFormat for particular blocks without pushing undo items to undostack?
bunjee
3rd May 2008, 16:35
You can do so using QTextCursor.
EnErGy[CSDX]
3rd May 2008, 17:19
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.
elcuco
3rd May 2008, 17:23
Look at QTextCursor::beginEditBlock()
EnErGy[CSDX]
3rd May 2008, 17:27
QTextCursor::setBlockFormat should not change undo stack
vBulletin® v3.7.1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.