[Qt-interest] Qt-interest Digest, Vol 4, Issue 149
Atlant Schmidt
aschmidt at dekaresearch.com
Wed Mar 30 14:40:10 CEST 2011
James:
How do you know that "most image viewers" simply haven't made the
same accommodation (and take both CTRL= and CTRL+ as "Zoom in")?
When I was writing code at Nokia (S60 code at that time), it turned out
that various phones emitted various keycodes for the same apparent
function so I ended up having to map several keycodes to each intended
function; it's not unusual.
Atlant
________________________________
From: qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com [mailto:qt-interest-bounces+aschmidt=dekaresearch.com at qt.nokia.com] On Behalf Of James Yan
Sent: Wednesday, March 30, 2011 03:23
To: qt-interest at qt.nokia.com
Subject: Re: [Qt-interest] Qt-interest Digest, Vol 4, Issue 149
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<mailto: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<mailto: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<mailto:qt-interest at qt.nokia.com>>
Message-ID: <7DB34253D57D2B47AEB656218FE6AAEF3B8289 at onshorecs.com<mailto: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>
[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<mailto: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
Click here<https://www.mailcontrol.com/sr/re6UXK6Und3TndxI!oX7UlnwUb8+3gKcYwGLBytXfEU35+ZH9!ZV4Cvx5Bj5mWbzxWP9XKiKMPgeaPLWGci2!g==> to report this email as spam.
________________________________
This e-mail and the information, including any attachments, it contains are intended to be a confidential communication only to the person or entity to whom it is addressed and may contain information that is privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the sender and destroy the original message.
Thank you.
Please consider the environment before printing this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110330/b5fac052/attachment.html
More information about the Qt-interest-old
mailing list