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

QPoint QWidget::pos [read, write, inherited]

the position of the widget within its parent widget

If the widget is a window, the position is that of the widget on the desktop, including its frame.

When changing the position, the widget, if visible, receives a move event (moveEvent()) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.

Warning:
Calling move() or setGeometry() inside moveEvent() can lead to infinite recursion.
See the Window Geometry documentation for an overview of window geometry.

See also:
frameGeometry, size x(), y()

Definition at line 129 of file qwidget.h.

Referenced by QWidget::adjustSize(), Q3Table::contentsMouseMoveEvent(), QAbstractSpinBox::contextMenuEvent(), QDateTimeEdit::dateTimeFromText(), Q3Table::doAutoScroll(), QWindowsXPStyle::drawComplexControl(), QGroupBox::event(), QWidget::event(), Q3ComboBox::eventFilter(), Q3FileDialog::init(), QWidget::insertAction(), Q3ListBox::itemAt(), QDateTimeEdit::keyPressEvent(), QHeaderView::mouseDoubleClickEvent(), QSplitterHandle::mouseMoveEvent(), QTextEdit::mouseMoveEvent(), QHeaderView::mouseMoveEvent(), QDateTimeEdit::mousePressEvent(), QHeaderView::mousePressEvent(), QAbstractItemView::mousePressEvent(), QSplitterHandle::mouseReleaseEvent(), QAbstractItemView::mouseReleaseEvent(), QHeaderView::mouseReleaseEvent(), QListView::moveCursor(), QApplication::notify(), Q3ComboBox::popup(), QToolBar::resizeEvent(), QHeaderView::resizeSection(), QWidget::scroll(), QTextEdit::timerEvent(), and Q3DockWindow::undock().


Generated by  Doxygen 1.6.0   Back to index