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

Qt::MouseButton QMouseEvent::buttons (  )  const [inline]

Returns the button state when the event was generated. The button state is a combination of Qt::LeftButton, Qt::RightButton, Qt::MidButton using the OR operator. For mouse move events, this is all buttons that are pressed down. For mouse press and double click events this includes the button that caused the event. For mouse release events this excludes the button that caused the event.

See also:
button() Qt::MouseButton

Definition at line 71 of file qevent.h.

Referenced by QMainWindow::event(), QGraphicsView::mouseDoubleClickEvent(), QAbstractItemView::mouseMoveEvent(), QSplitterHandle::mouseMoveEvent(), QTabBar::mouseMoveEvent(), QAbstractButton::mouseMoveEvent(), QDial::mouseMoveEvent(), QMenuBar::mouseMoveEvent(), QTextEdit::mouseMoveEvent(), QMenu::mouseMoveEvent(), QSizeGrip::mouseMoveEvent(), QLineEdit::mouseMoveEvent(), QScrollBar::mouseMoveEvent(), QHeaderView::mouseMoveEvent(), QGraphicsView::mouseMoveEvent(), QGraphicsView::mousePressEvent(), QDial::mousePressEvent(), QScrollBar::mousePressEvent(), QSlider::mousePressEvent(), QDial::mouseReleaseEvent(), QGraphicsView::mouseReleaseEvent(), QScrollBar::mouseReleaseEvent(), QSlider::mouseReleaseEvent(), and QApplication::notify().

{ return mouseState; }


Generated by  Doxygen 1.6.0   Back to index