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 86 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(), QStyledItemDelegate::editorEvent(), QItemDelegate::editorEvent(), QMainWindow::event(), Q3ComboBox::eventFilter(), Q3ListView::eventFilter(), QAbstractItemView::mouseDoubleClickEvent(), QTreeView::mouseDoubleClickEvent(), QLineEdit::mouseDoubleClickEvent(), TabWidget::mouseDoubleClickEvent(), Q3Header::mouseDoubleClickEvent(), QHeaderView::mouseDoubleClickEvent(), Q3ListBox::mouseDoubleClickEvent(), Q3SpinWidget::mouseMoveEvent(), QSlider::mouseMoveEvent(), QRadioButton::mouseMoveEvent(), PieView::mouseMoveEvent(), QGroupBox::mouseMoveEvent(), GLWidget::mouseMoveEvent(), QTabBar::mouseMoveEvent(), SortingBox::mouseMoveEvent(), QMenuBar::mouseMoveEvent(), QDial::mouseMoveEvent(), QAbstractButton::mouseMoveEvent(), QListView::mouseMoveEvent(), QTextEdit::mouseMoveEvent(), DragWidget::mouseMoveEvent(), PictureFlow::mouseMoveEvent(), Document::mouseMoveEvent(), QMenu::mouseMoveEvent(), Q3Header::mouseMoveEvent(), QPlainTextEdit::mouseMoveEvent(), QLineEdit::mouseMoveEvent(), QCheckBox::mouseMoveEvent(), QTreeView::mouseMoveEvent(), QScrollBar::mouseMoveEvent(), QMdiSubWindow::mouseMoveEvent(), ScribbleArea::mouseMoveEvent(), QAbstractSpinBox::mouseMoveEvent(), Q3ListBox::mouseMoveEvent(), QGraphicsView::mouseMoveEvent(), QMdiSubWindow::mousePressEvent(), QDial::mousePressEvent(), GLWidget::mousePressEvent(), MandelbrotWidget::mousePressEvent(), SortingBox::mousePressEvent(), QTreeView::mousePressEvent(), QTabBar::mousePressEvent(), TicTacToe::mousePressEvent(), QAbstractButton::mousePressEvent(), CannonField::mousePressEvent(), QGroupBox::mousePressEvent(), QDateTimeEdit::mousePressEvent(), MainWindow::mousePressEvent(), Q3Header::mousePressEvent(), QComboBox::mousePressEvent(), QAbstractSpinBox::mousePressEvent(), QSplitterHandle::mousePressEvent(), QScrollBar::mousePressEvent(), QLineEdit::mousePressEvent(), QSlider::mousePressEvent(), QMdiAreaTabBar::mousePressEvent(), Document::mousePressEvent(), QWidget::mousePressEvent(), QMenu::mousePressEvent(), DragWidget::mousePressEvent(), QMenuBar::mousePressEvent(), Q3SpinWidget::mousePressEvent(), QToolButton::mousePressEvent(), Q3ComboBox::mousePressEvent(), QTreeView::mouseReleaseEvent(), QDial::mouseReleaseEvent(), SortingBox::mouseReleaseEvent(), QGraphicsView::mouseReleaseEvent(), QAbstractButton::mouseReleaseEvent(), Q3Header::mouseReleaseEvent(), QMenu::mouseReleaseEvent(), View::mouseReleaseEvent(), QMenuBar::mouseReleaseEvent(), QGroupBox::mouseReleaseEvent(), TabWidget::mouseReleaseEvent(), QTabBar::mouseReleaseEvent(), ScribbleArea::mouseReleaseEvent(), Q3ListBox::mouseReleaseEvent(), QMdiSubWindow::mouseReleaseEvent(), QApplication::notify(), Q3TextEdit::optimMouseMoveEvent(), Q3TextEdit::optimMousePressEvent(), Q3TextEdit::optimMouseReleaseEvent(), posF(), Q3ScrollView::viewportMouseDoubleClickEvent(), Q3ScrollView::viewportMouseMoveEvent(), Q3ScrollView::viewportMousePressEvent(), and Q3ScrollView::viewportMouseReleaseEvent().

{ return p; }


Generated by  Doxygen 1.6.0   Back to index