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

bool QPainterPath::intersects ( const QPainterPath p  )  const

Since:
4.3
Returns true if the current path intersects at any point the given path p. Also returns true if the current path contains or is contained by any part of p.

See also:
contains()

Definition at line 3065 of file qpainterpath.cpp.

References contains(), elementAt(), elementCount(), and isEmpty().

{
    if (p.elementCount() == 1)
        return contains(p.elementAt(0));
    if (isEmpty() || p.isEmpty())
        return false;
    QPathClipper clipper(*this, p);
    return clipper.intersect();
}


Generated by  Doxygen 1.6.0   Back to index