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

void QGraphicsItem::moveBy ( qreal  dx,
qreal  dy 
) [inline, inherited]

Moves the item by dx points horizontally, and dy point vertically. This function is equivalent to calling setPos(pos() + QPointF(dx, dy)).

Definition at line 219 of file qgraphicsitem.h.

{ setPos(pos().x() + dx, pos().y() + dy); }

Generated by  Doxygen 1.6.0   Back to index