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

QPainterPath QPainterPath::united ( const QPainterPath p  )  const

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

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

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