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

const QPoint & QMouseEvent::pos (  )  const [inline]

Returns the position of the mouse cursor, relative to the widget that received the event.

If you move the widget as a result of the mouse event, use the global position returned by globalPos() to avoid a shaking motion.

See also:
x() y() globalPos()

Definition at line 64 of file qevent.h.

Referenced by Q3Table::contentsMouseDoubleClickEvent(), Q3IconView::contentsMouseDoubleClickEvent(), Q3ListView::contentsMouseDoubleClickEvent(), Q3TextEdit::contentsMouseDoubleClickEvent(), Q3ListView::contentsMouseMoveEvent(), Q3IconView::contentsMouseMoveEvent(), Q3Table::contentsMouseMoveEvent(), Q3TextEdit::contentsMouseMoveEvent(), Q3TextEdit::contentsMousePressEvent(), Q3TextEdit::contentsMouseReleaseEvent(), Q3Table::contentsMouseReleaseEvent(), Q3IconView::contentsMouseReleaseEvent(), QMainWindow::event(), Q3ComboBox::eventFilter(), Q3ListView::eventFilter(), QLineEdit::keyPressEvent(), QAbstractItemView::mouseDoubleClickEvent(), QTreeView::mouseDoubleClickEvent(), QLineEdit::mouseDoubleClickEvent(), Q3Header::mouseDoubleClickEvent(), QHeaderView::mouseDoubleClickEvent(), Q3ListBox::mouseDoubleClickEvent(), Q3SpinWidget::mouseMoveEvent(), QRadioButton::mouseMoveEvent(), QSlider::mouseMoveEvent(), QGroupBox::mouseMoveEvent(), QTabBar::mouseMoveEvent(), QListView::mouseMoveEvent(), QAbstractButton::mouseMoveEvent(), QDial::mouseMoveEvent(), QMenuBar::mouseMoveEvent(), QTextEdit::mouseMoveEvent(), QMenu::mouseMoveEvent(), Q3Header::mouseMoveEvent(), QCheckBox::mouseMoveEvent(), QLineEdit::mouseMoveEvent(), QTreeView::mouseMoveEvent(), QScrollBar::mouseMoveEvent(), QAbstractSpinBox::mouseMoveEvent(), QGraphicsView::mouseMoveEvent(), Q3ListBox::mouseMoveEvent(), QDial::mousePressEvent(), QTreeView::mousePressEvent(), QTabBar::mousePressEvent(), QAbstractButton::mousePressEvent(), QGroupBox::mousePressEvent(), QDateTimeEdit::mousePressEvent(), Q3Header::mousePressEvent(), QAbstractSpinBox::mousePressEvent(), QComboBox::mousePressEvent(), QLineEdit::mousePressEvent(), QScrollBar::mousePressEvent(), QSplitterHandle::mousePressEvent(), QWidget::mousePressEvent(), QSlider::mousePressEvent(), QMenu::mousePressEvent(), QMenuBar::mousePressEvent(), Q3SpinWidget::mousePressEvent(), QToolButton::mousePressEvent(), Q3ComboBox::mousePressEvent(), QTreeView::mouseReleaseEvent(), QDial::mouseReleaseEvent(), QGraphicsView::mouseReleaseEvent(), QAbstractButton::mouseReleaseEvent(), Q3Header::mouseReleaseEvent(), QMenu::mouseReleaseEvent(), QMenuBar::mouseReleaseEvent(), QTabBar::mouseReleaseEvent(), Q3ListBox::mouseReleaseEvent(), QApplication::notify(), Q3TextEdit::optimMouseMoveEvent(), Q3TextEdit::optimMousePressEvent(), Q3TextEdit::optimMouseReleaseEvent(), Q3ScrollView::viewportMouseDoubleClickEvent(), Q3ScrollView::viewportMouseMoveEvent(), Q3ScrollView::viewportMousePressEvent(), and Q3ScrollView::viewportMouseReleaseEvent().

{ return p; }


Generated by  Doxygen 1.6.0   Back to index