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

const QPainterPath::Element & QPainterPath::elementAt ( int  index  )  const [inline]

Returns the element at the given index in the painter path.

See also:
ElementType, elementCount(), isEmpty()

Definition at line 342 of file qpainterpath.h.

References elementCount().

Referenced by QGraphicsItem::collidesWithPath().

{
    Q_ASSERT(d_ptr);
    Q_ASSERT(i >= 0 && i < elementCount());
    return d_ptr->elements.at(i);
}


Generated by  Doxygen 1.6.0   Back to index