Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, December 2006
Several actions with same shortcut


Message 1 in thread

Hi all,

is there a way to assign the same shortcut to several QActions?

When I create two QActions with the same shortcut and add them to the toolbar 
I get the following message when pressing the shortcut key (Esc in this 
case):

QAction::eventFilter: Ambiguous shortcut overload: Esc

Any idea how to do this?

Cheers, Tobias


-- 
 [ signature omitted ] 

Message 2 in thread

On 19.12.06 22:13:50, Tobias Kaupp wrote:
> is there a way to assign the same shortcut to several QActions?

No and it would be confusing for the user too. Don't do it.

Why do you thing you need to have two different QActions, possibly doing
different things, associated with the same shortcut?

Andreas

-- 
 [ signature omitted ]