Results 1 to 3 of 3

Thread: Detecting a action ( undo/ redo)

  1. #1
    Join Date
    Mar 2006
    Location
    Vadodara, Gujarat, India
    Posts
    65
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Detecting a action ( undo/ redo)

    hi guys,
    how can i detect a particular action performed on cell, like cut copy,paste,edit etc.
    i want to store these actions in a stack to perform undo redo operations.
    Do what u r afraid to do, and the death of fear is sure.

  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: Detecting a action ( undo/ redo)

    You should connect to signals which trigger actions if they are ones you can't control (you didn't implement them) or emit a signal from the actions that a particular action is just executed if those actions are implemented by you. You can then connect to those signals and manipulate the undo stack accordingly.

  3. The following user says thank you to wysota for this useful post:

    ankurjain (5th May 2006)

  4. #3
    Join Date
    Mar 2006
    Location
    Vadodara, Gujarat, India
    Posts
    65
    Thanks
    16
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Detecting a action ( undo/ redo)

    thanx wysota buddy,

    u made it so simple ....
    Do what u r afraid to do, and the death of fear is sure.

Similar Threads

  1. Ideas about how to implement Undo and Redo actions?
    By pir in forum General Discussion
    Replies: 3
    Last Post: 21st July 2006, 09:27
  2. Implement Undo Redo
    By ankurjain in forum Qt Programming
    Replies: 5
    Last Post: 28th March 2006, 13:17

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.