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

QPoint & QPoint::operator+= ( const QPoint point  )  [inline]

Adds the given point to this point and returns a reference to this point. For example:

        QPoint p( 3, 7);
        QPoint q(-1, 4);
        p += q;    // p becomes (2, 11)

See also:
operator-=()

Definition at line 137 of file qpoint.h.

References xp, and yp.

{ xp+=p.xp; yp+=p.yp; return *this; }


Generated by  Doxygen 1.6.0   Back to index