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

QPainterPath QPainterPath::intersected ( const QPainterPath p  )  const

Returns a path which is the intersection of this path's fill area and p's fill area.

Definition at line 3008 of file qpainterpath.cpp.

References isEmpty(), and QPainterPath().

Referenced by QPolygon::intersected(), and QPolygonF::intersected().

    if (isEmpty() || p.isEmpty())
        return QPainterPath();
    QPathClipper clipper(*this, p);
    return clipper.clip(QPathClipper::BoolAnd);

Generated by  Doxygen 1.6.0   Back to index