[Qt-interest] Qt-interest Digest, Vol 4, Issue 149

James Yan james.pizza at gmail.com
Wed Mar 30 09:23:11 CEST 2011


yep, you're right.
but it's a little bit strange that Plus requires a shift key.

like most "image viewer" application, i hope to zoom in with shortcut CTRL + PLUS, 
but in Qt i find it acutally is "Qt::CTRL + Qt::Key_Equal".

On Mar 30, 2011, at 3:04 PM, qt-interest-request at qt.nokia.com wrote:

> Date: Tue, 29 Mar 2011 22:34:09 -0700
> From: "Scott Aron Bloom" <Scott.Bloom at onshorecs.com>
> Subject: Re: [Qt-interest] shortcut(Qt::CTRL + Qt::Key_Plus) does not
> 	work.
> To: <qt-interest at qt.nokia.com>
> Message-ID: <7DB34253D57D2B47AEB656218FE6AAEF3B8289 at onshorecs.com>
> Content-Type: text/plain; charset="us-ascii"
> 
> 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/20110330/290ab988/attachment.html 


More information about the Qt-interest-old mailing list