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

QSize QWidget::size [inline, read, write, inherited]

the size of the widget excluding any window frame

If the widget is visible when it is being resized, it receives a resize event (resizeEvent()) immediately. If the widget is not currently visible, it is guaranteed to receive an event before it is shown.

The size is adjusted if it lies outside the range defined by minimumSize() and maximumSize(). For windows, the minimum size is always at least QSize(1, 1), and it might be larger, depending on the window manager.

Warning:
Calling resize() or setGeometry() inside resizeEvent() can lead to infinite recursion.
See also:
pos, geometry, minimumSize, maximumSize, resizeEvent()

Definition at line 131 of file qwidget.h.

Referenced by QMessageBox::about(), QToolBar::actionEvent(), QLayout::activate(), QWorkspace::addWindow(), Q3Table::cellRect(), QLayout::closestAcceptableSize(), Q3DockWindow::dock(), QScrollArea::ensureWidgetVisible(), QMainWindow::event(), Q3ToolBar::event(), QAbstractScrollArea::maximumViewportSize(), QMenuBar::minimumSizeHint(), Q3WidgetStack::minimumSizeHint(), QGroupBox::minimumSizeHint(), QProgressBar::minimumSizeHint(), QHeaderView::moveSection(), Q3Table::paintEmptyArea(), QGraphicsView::paintEvent(), QMenu::popup(), QGLWidget::renderPixmap(), QToolBar::resizeEvent(), QMainWindow::restoreState(), QHeaderView::sectionSizeFromContents(), QHeaderView::sectionSizeHint(), QHeaderView::setSectionHidden(), Q3ToolBar::setVisible(), QDialog::showExtension(), QGraphicsView::sizeHint(), QProgressBar::sizeHint(), Q3WidgetStack::sizeHint(), QTabWidget::sizeHint(), Q3CanvasView::sizeHint(), QScrollBar::sizeHint(), QWorkspace::sizeHint(), and Q3ComboBox::updateMask().


Generated by  Doxygen 1.6.0   Back to index