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

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

Referenced by Q3Table::contentsMouseDoubleClickEvent(), Q3IconView::contentsMouseDoubleClickEvent(), Q3ListView::contentsMouseDoubleClickEvent(), Q3TextEdit::contentsMouseDoubleClickEvent(), Q3ListView::contentsMouseMoveEvent(), Q3Table::contentsMouseMoveEvent(), Q3IconView::contentsMouseMoveEvent(), Q3TextEdit::contentsMouseMoveEvent(), Q3TextEdit::contentsMousePressEvent(), Q3TextEdit::contentsMouseReleaseEvent(), Q3Table::contentsMouseReleaseEvent(), Q3IconView::contentsMouseReleaseEvent(), Q3ComboBox::eventFilter(), Q3ListView::eventFilter(), QAbstractItemView::mouseDoubleClickEvent(), QTreeView::mouseDoubleClickEvent(), QLineEdit::mouseDoubleClickEvent(), Q3Header::mouseDoubleClickEvent(), QHeaderView::mouseDoubleClickEvent(), Q3ListBox::mouseDoubleClickEvent(), QTextEdit::mouseDoubleClickEvent(), Q3SpinWidget::mouseMoveEvent(), QSlider::mouseMoveEvent(), QRadioButton::mouseMoveEvent(), QGroupBox::mouseMoveEvent(), QTabBar::mouseMoveEvent(), QMenuBar::mouseMoveEvent(), QDial::mouseMoveEvent(), QAbstractButton::mouseMoveEvent(), QListView::mouseMoveEvent(), QTextEdit::mouseMoveEvent(), QTextBrowser::mouseMoveEvent(), Q3Header::mouseMoveEvent(), QMenu::mouseMoveEvent(), QLineEdit::mouseMoveEvent(), QCheckBox::mouseMoveEvent(), QScrollBar::mouseMoveEvent(), QAbstractSpinBox::mouseMoveEvent(), Q3ListBox::mouseMoveEvent(), QDial::mousePressEvent(), QTreeView::mousePressEvent(), QTabBar::mousePressEvent(), QAbstractButton::mousePressEvent(), QGroupBox::mousePressEvent(), QTextEdit::mousePressEvent(), Q3Header::mousePressEvent(), QTextBrowser::mousePressEvent(), QComboBox::mousePressEvent(), QAbstractSpinBox::mousePressEvent(), QSplitterHandle::mousePressEvent(), QScrollBar::mousePressEvent(), QLineEdit::mousePressEvent(), QSlider::mousePressEvent(), QWidget::mousePressEvent(), QMenu::mousePressEvent(), Q3SpinWidget::mousePressEvent(), QMenuBar::mousePressEvent(), QToolButton::mousePressEvent(), Q3ComboBox::mousePressEvent(), QTreeView::mouseReleaseEvent(), QDial::mouseReleaseEvent(), QTextBrowser::mouseReleaseEvent(), Q3Header::mouseReleaseEvent(), QTextEdit::mouseReleaseEvent(), QAbstractButton::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