I can't find how to see which shortcut triggered an action. I have a find/replace window and want certain widgets to be disabled when the user presses the replace keysequence and others when the find sequence is pressed
thanks
Printable View
I can't find how to see which shortcut triggered an action. I have a find/replace window and want certain widgets to be disabled when the user presses the replace keysequence and others when the find sequence is pressed
thanks
You can construct two objects of type QShortcut and connect the activated method to a slot, where you enable / disable your widgets.
Greetz Yakin
But you can always know which action was triggered using QObject::sender() :rolleyes:Quote:
I can't find how to see which shortcut triggered an action
ok, thanks, makes sense.