qt-interest@trolltech.com
[Top] [All Lists]

Two setShortcut?

Subject: Two setShortcut?
From: Lingfa Yang
Date: Mon, 28 Jul 2008 09:32:43 -0400
Quick question on set two shortcuts:

 reopenAct->setShortcut(tr("Ctrl+R"));
 reopenAct->setShortcut(tr("F5"));

 fileMenu->addAction(reopenAct);

As above, two of them work, but the menu show just one "F5".

To reverse the order, only one works, right?

Can some tell the rule about how to set more than one shortcuts for one QAction?

Thanks,
Lingfa

--
To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with 
"unsubscribe" in the subject or the body.
List archive and information: http://lists.trolltech.com/qt-interest/

<Prev in Thread] Current Thread [Next in Thread>