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 222 of file qevent.h.

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

{ return k; }


Generated by  Doxygen 1.6.0   Back to index