Results 1 to 6 of 6

Thread: QUndoStack + QUndoView possible bug

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    May 2013
    Posts
    321
    Thanks
    9
    Thanked 8 Times in 8 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default QUndoStack + QUndoView possible bug

    Hi,
    I have found a possible bug in QUndoStack+QUndoView, surely the bug is only in QUndoStack since QUndoView calls setIndex of QUndoStack.
    The bug is when I undo and redo step by step I have never problem but if I undo and redo more than one step, I got not the same result.
    Is it possible to overwrite the setIndex QUndoView does to make a custom for-loop to call undo() or redo() of each command ?
    Since all works fine step by step, that looks like a real bug.
    Thanks for the help
    Last edited by Alundra; 24th November 2014 at 16:37.

Similar Threads

  1. QAbstractItemModel with QUndoStack
    By No-Nonsense in forum Qt Programming
    Replies: 7
    Last Post: 28th October 2012, 17:15
  2. Replies: 0
    Last Post: 3rd August 2010, 11:47
  3. QTreeWidget and QUndoStack?
    By olihey in forum Qt Programming
    Replies: 0
    Last Post: 7th July 2010, 09:08
  4. resize QUndoView
    By zack in forum Qt Programming
    Replies: 3
    Last Post: 31st August 2009, 11:31
  5. QUndoStack problem
    By swiety in forum Qt Programming
    Replies: 1
    Last Post: 24th October 2007, 21:57

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.