View Full Version : How to make changes in QTextDocument without creating undo item?
EnErGy[CSDX]
3rd May 2008, 15:16
How to change QTextBlockFormat for particular blocks without pushing undo items to undostack?
bunjee
3rd May 2008, 15:35
You can do so using QTextCursor.
EnErGy[CSDX]
3rd May 2008, 16: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, 16:23
Look at QTextCursor::beginEditBlock()
EnErGy[CSDX]
3rd May 2008, 16:27
QTextCursor::setBlockFormat should not change undo stack
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.