Hello,
Is there any way to remove/pop items from a QUndoStack ... starting from an index and everything thereafter?
The reason I need to do this is related to another problem I'm having with redo commands related to item groups (forum post, 'QGraphicsItemGroup and undo/redo error').
Do I need to derive from QUndoStack to implement the behavior? Is this considered "bad form"?
BTW, I know it's possible to remove all items with the clear() method. I don't see how to "pop" an item or two off.
Regards,
Ben


Reply With Quote



Bookmarks