Hello,

When is it permissible to call QUndoStack::clear()?

I tried doing so at the end of an undo operation and it resulted in a crash.
QUndoStack_clear_crash.jpg.

However, if I use a single-shot timer and clear the QUndoStack just 1 millisecond later there is no crash.

The reason for clearing the QUndoStack admittedly seems odd, but I'm having trouble with redo commands related to item groups (forum post, 'QGraphicsItemGroup and undo/redo error').

Thanks,
Ben