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

QRect QWidget::contentsRect (  )  const [inherited]

Returns the area inside the widget's margins.

See also:
setContentsMargins(), getContentsMargins()

Reimplemented in Q3Frame.

Definition at line 4840 of file qwidget.cpp.

Referenced by QSplitterHandle::closestLegalPosition(), QLabel::paintEvent(), and QSplitter::setRubberBand().

{
    Q_D(const QWidget);
    return QRect(QPoint(d->leftmargin, d->topmargin),
                 QPoint(data->crect.width() - 1 - d->rightmargin,
                        data->crect.height() - 1 - d->bottommargin));

}


Generated by  Doxygen 1.6.0   Back to index