PDA

View Full Version : Qt::Key_Return



estel
4th September 2009, 16:33
I have found it in one of examples.

if (splash->isVisible() || event->key() == Qt::Key_Return || flipped) {
QGraphicsView::keyPressEvent(event);
return;
}

Could you tell me what is Key_Return?

Boron
4th September 2009, 16:58
Maybe it represents the "return key" of the keyboard. Just as synonym for Qt::Key_Enter.

Lesiok
4th September 2009, 17:28
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.

wysota
4th September 2009, 18:13
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).