Results 1 to 2 of 2

Thread: How can i implement "Undo" action?

  1. #1
    Join Date
    Oct 2010
    Posts
    15
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default How can i implement "Undo" action?

    How can i implement "Undo" action in this example?

    I have tried to look at description of undo framework here, but not understand how can i
    use this for my purpose in this example...

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: How can i implement "Undo" action?

    Each operation you perform has to be embedded in a semantic command (e.g. "draw point", "draw line") that can perform the operation and also perform the inverse of it (so in case of "draw point" it would restore the state of the environment to exactly what it was before the point was drawn).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 8
    Last Post: 2nd September 2010, 15:49
  2. Replies: 1
    Last Post: 15th June 2009, 17:28
  3. [QT3] Implement "Freeze Panes" features in QListView
    By Syphius in forum Qt Programming
    Replies: 7
    Last Post: 5th January 2009, 21:25
  4. Background Style Disables QScrollBar "Drag" Action
    By brent99 in forum Qt Programming
    Replies: 1
    Last Post: 3rd June 2008, 20:16
  5. Translation QFileDialog standart buttons ("Open"/"Save"/"Cancel")
    By victor.yacovlev in forum Qt Programming
    Replies: 4
    Last Post: 24th January 2008, 19:05

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.