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

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

References isEmpty().

Referenced by QGraphicsRectItem::boundingRect(), QGraphicsLineItem::boundingRect(), QGraphicsEllipseItem::boundingRect(), QGraphicsPathItem::boundingRect(), QGraphicsPolygonItem::boundingRect(), QGraphicsItem::collidesWithPath(), contains(), QRasterPaintEngine::drawPath(), QRasterPaintEngine::fillPath(), intersects(), and QGraphicsScene::items().

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

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


Generated by  Doxygen 1.6.0   Back to index