Qt Code:
  1. Hi!
  2.  
  3. I am calling QUndoStack::push( myCommand )
  4. In myCommand::redo() I am calling a function called "bool dosomething()"
  5. If the result is false I want to cancel the push()-Function.
  6.  
  7. If this is not possible, how can I remove explicitly the last QUndoCommand from QUndoStack?
  8.  
  9. Sorry for my broken english...
  10.  
  11. Mike from Vienna
To copy to clipboard, switch view to plain text mode