Results 1 to 4 of 4

Thread: Qt::Key_Return

  1. #1
    Join Date
    Jun 2009
    Posts
    25
    Thanks
    1

    Default Qt::Key_Return

    I have found it in one of examples.
    Qt Code:
    1. if (splash->isVisible() || event->key() == Qt::Key_Return || flipped) {
    2. QGraphicsView::keyPressEvent(event);
    3. return;
    4. }
    To copy to clipboard, switch view to plain text mode 

    Could you tell me what is Key_Return?

  2. #2
    Join Date
    Mar 2007
    Location
    Germany
    Posts
    229
    Thanks
    2
    Thanked 29 Times in 28 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Qt::Key_Return

    Maybe it represents the "return key" of the keyboard. Just as synonym for Qt::Key_Enter.

  3. #3
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt::Key_Return

    Qt::Key_Enter this is a Enter key on numeric pad. Qt::Key_Return this is a Enter key on main pad.
    Qt differentiate this two keys. For me this a nonsense.

  4. The following user says thank you to Lesiok for this useful post:

    estel (5th September 2009)

  5. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,018 Times in 4,794 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt::Key_Return

    Quote Originally Posted by Lesiok View Post
    For me this a nonsense.
    They are two different keys. For you it is nonsense because you are used to PCs, where the return key has the word "Enter" written on it. I originate from platforms where this key is called "Return" (and is marked as such, by the way).
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.