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

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 1359 of file qpainterpath.cpp.

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

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

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


Generated by  Doxygen 1.6.0   Back to index