[Qt-interest] shortcut(Qt::CTRL + Qt::Key_Plus) does not work.

Scott Aron Bloom Scott.Bloom at onshorecs.com
Wed Mar 30 07:34:09 CEST 2011


Make sure you are actually hitting the plus key and not the equals key..
the Plus usually requires a shift J

 

From: qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com
[mailto:qt-interest-bounces+scott.bloom=onshorecs.com at qt.nokia.com] On
Behalf Of James Yan
Sent: Tuesday, March 29, 2011 9:34 PM
To: qt-interest at qt.nokia.com
Subject: [Qt-interest] shortcut(Qt::CTRL + Qt::Key_Plus) does not work.

 

Hey all,

 

  I've two menu action: "Zoom In" and "Zoom Out", and i set shortcut for
both of them, 

but only Zoom Out works (Qt::CTRL + Qt::Key_Minus), what's wrong with
the zoom-in shortcut(Qt::CTRL + Qt::Key_Plus)?

  a bug? thanks.

 

===

actViewZoomIn  = new QAction("Zoom In",this);

actViewZoomIn->setShortcut( QKeySequence(Qt::CTRL + Qt::Key_Plus ) );


 

actViewZoomOut = new QAction("Zoom Out",this);

actViewZoomOut->setShortcut( QKeySequence(Qt::CTRL + Qt::Key_Minus ) );


===

 

regards,

James       

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110329/468c8264/attachment.html 


More information about the Qt-interest-old mailing list