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

const QRect & QWidget::geometry [inline, read, write, inherited]

the geometry of the widget relative to its parent and excluding the window frame

When changing the geometry, the widget, if visible, receives a move event (moveEvent()) and/or a resize event (resizeEvent()) immediately. If the widget is not currently visible, it is guaranteed to receive appropriate events before it is shown.

The size component is adjusted if it lies outside the range defined by minimumSize() and maximumSize().

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

See also:
frameGeometry(), rect(), move(), resize(), moveEvent(), resizeEvent(), minimumSize(), maximumSize()

Definition at line 124 of file qwidget.h.

Referenced by QToolBar::actionGeometry(), QDialog::adjustPosition(), QWidget::childAt(), QAccessibleWidget::childAt(), QWidget::destroy(), Q3TextEdit::drawContents(), Q3Table::drawContents(), QWidgetItem::geometry(), QMenu::internalDelayedPopup(), qdesigner_internal::Layout::Layout(), QSizeGrip::mousePressEvent(), Q3MainWindow::operator<<(), Q3WidgetStack::raiseWidget(), QAccessibleTabBar::rect(), Q3WidgetStack::setChildGeometries(), QWidget::setMask(), qdesigner_internal::Layout::setup(), and QWidget::setWindowState().

Generated by  Doxygen 1.6.0   Back to index