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

QRectF QPainterPath::controlPointRect (  )  const

Returns the rectangle containing all the points and control points in this path.

This function is significantly faster to compute than the exact boundingRect(), and the returned rectangle is always a superset of the rectangle returned by boundingRect().

See also:
boundingRect()

Definition at line 1380 of file qpainterpath.cpp.

Referenced by QGraphicsItem::collidesWithPath(), contains(), QRasterPaintEngine::fillPath(), SortingBox::initialItemPosition(), intersects(), and QGraphicsScene::items().

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

    if (d->dirtyControlBounds)
        computeControlPointRect();
    return d->controlBounds;
}


Generated by  Doxygen 1.6.0   Back to index