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

QPainterPath QPainterPath::subtracted ( const QPainterPath p  )  const

Since:
4.3
Returns a path which is p subtracted from this path.

Definition at line 2982 of file qpainterpath.cpp.

References isEmpty().

Referenced by QPolygonF::subtracted(), QPolygon::subtracted(), and subtractedInverted().

{
    if (isEmpty() || p.isEmpty())
        return *this;
    QPathClipper clipper(*this, p);
    return clipper.clip(QPathClipper::BoolSub);
}


Generated by  Doxygen 1.6.0   Back to index