[Qt-interest] help needed on shortcut keys implementation
Frank Mertens
frank at cyblogic.de
Mon Jan 19 22:25:29 CET 2009
I guess you need to register the action somewhere.
Take a look at QWidget::addAction(), QMenu::addAction or QShortcut.
--
Frank
Ravi_Kalepalli wrote:
> Hi All,
>
> I am trying to implement the shortcut keys with QAction class for my application (on S60).
> But I can't able to do it....can any one please helps me.....
>
> Here is my code
> openAct = new QAction(tr("Open"), this);
> openAct->setShortcut(tr("4"));
> connect(openAct, SIGNAL(triggered()), this, SLOT(open()));
>
> Should I do any other changes?
> Can any one please help me.....?
>
>
> Thanks and Regards
>
> Ravi Kalepalli
> Telephone: 080-66577808
> Mobile: 9880724688
> [cid:image001.gif at 01C97A1E.1E14B190]
>
>
> ________________________________
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
More information about the Qt-interest-old
mailing list