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

QPainterPath QPainterPath::intersected ( const QPainterPath p  )  const

Since:
4.3
Returns a path which is the intersection of this path and p.

Definition at line 2969 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