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

QRectF QPainterPath::boundingRect (  )  const

Returns the bounding rectangle of this painter path as a rectangle with floating point precision.

See also:
controlPointRect()

Definition at line 1396 of file qpainterpath.cpp.

References isEmpty().

Referenced by QPainter::drawPath(), QRasterPaintEngine::drawPath(), QRasterPaintEngine::fillPath(), QPainter::setClipPath(), and QRasterPaintEngine::updateClipPath().

{
    if (isEmpty())
        return QRectF();
    QPainterPathData *d = d_func();

    if (d->dirtyBounds)
        computeBoundingRect();
    return d->bounds;
}


Generated by  Doxygen 1.6.0   Back to index