here is how frameRect() is calculated inside QFrame:
{
QRect fr
= contentsRect
();
if ((d
->oldFrameStyle
& QFrame::Shape_Mask) == QFrame::StyledPanel) { fr.adjust(-d->leftFrameWidth, -d->topFrameWidth, d->rightFrameWidth, d->bottomFrameWidth);
} else
fr.adjust(-d->frameWidth, -d->frameWidth, d->frameWidth, d->frameWidth);
return fr;
}
QRect QFrame::frameRect() const
{
Q_D(const QFrame);
QRect fr = contentsRect();
if ((d->oldFrameStyle & QFrame::Shape_Mask) == QFrame::StyledPanel) {
fr.adjust(-d->leftFrameWidth, -d->topFrameWidth, d->rightFrameWidth, d->bottomFrameWidth);
} else
fr.adjust(-d->frameWidth, -d->frameWidth, d->frameWidth, d->frameWidth);
return fr;
}
To copy to clipboard, switch view to plain text mode
thus i believe contentsRect() should be what u need
Bookmarks