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

QPainterPath QPainterPath::united ( const QPainterPath p  )  const

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

See also:
intersected(), subtracted(), subtractedInverted()

Definition at line 2956 of file qpainterpath.cpp.

References isEmpty().

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

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


Generated by  Doxygen 1.6.0   Back to index