Logo Search packages:      
Sourcecode: qt4-x11 version File versions

int QKeyEvent::key (  )  const [inline]

Returns the code of the key that was pressed or released.

See Qt::Key for the list of keyboard codes. These codes are independent of the underlying window system. Note that this function does not distinguish between capital and non-capital letters, use the text() function (returning the Unicode text the key generated) for this purpose.

A value of either 0 or Qt::Key_unknown means that the event is not the result of a known key; for example, it may be the result of a compose sequence, a keyboard macro, or due to key event compression.

See also:
Qt::WA_KeyCompression

Definition at line 194 of file qevent.h.

Referenced by QLineEdit::event(), QGroupBox::event(), QWidget::event(), QMenuBar::event(), QMenu::event(), Q3TextEdit::event(), Q3DataTable::eventFilter(), Q3Table::eventFilter(), Q3DockWindow::eventFilter(), QMenuBar::eventFilter(), QCompleter::eventFilter(), QFontDialog::eventFilter(), Q3ListView::eventFilter(), QDialog::keyPressEvent(), QLineEdit::keyPressEvent(), Q3Table::keyPressEvent(), Q3Header::keyPressEvent(), QTabBar::keyPressEvent(), QTabWidget::keyPressEvent(), Q3ListView::keyPressEvent(), QMessageBox::keyPressEvent(), QAbstractItemView::keyPressEvent(), QAbstractSpinBox::keyPressEvent(), QComboBox::keyPressEvent(), Q3FileDialog::keyPressEvent(), Q3IconView::keyPressEvent(), Q3DataTable::keyPressEvent(), QTextEdit::keyPressEvent(), Q3TextBrowser::keyPressEvent(), Q3ComboBox::keyPressEvent(), QWidget::keyPressEvent(), QAbstractButton::keyPressEvent(), QPushButton::keyPressEvent(), Q3ListBox::keyPressEvent(), QAbstractSlider::keyPressEvent(), QDateTimeEdit::keyPressEvent(), QMenu::keyPressEvent(), QTreeView::keyPressEvent(), QMenuBar::keyPressEvent(), Q3TextEdit::keyPressEvent(), QTextBrowser::keyPressEvent(), QAbstractScrollArea::keyPressEvent(), QTextEdit::keyReleaseEvent(), QAbstractButton::keyReleaseEvent(), Q3Header::keyReleaseEvent(), matches(), modifiers(), and QApplication::notify().

{ return k; }


Generated by  Doxygen 1.6.0   Back to index