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

James Yan james.pizza at gmail.com
Wed Mar 30 06:34:14 CEST 2011


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/20110330/61ade47d/attachment.html 


More information about the Qt-interest-old mailing list