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

void QRectF::moveTopLeft ( const QPointF position  )  [inline]

Moves the rectangle, leaving the top-left corner at the given position. The rectangle's size is unchanged.

See also:
setTopLeft(), moveTop(), moveLeft()

Definition at line 698 of file qrect.h.

References moveLeft(), moveTop(), QPointF::x(), and QPointF::y().

Referenced by QGraphicsWidget::setGeometry().

{ moveLeft(p.x()); moveTop(p.y()); }

Generated by  Doxygen 1.6.0   Back to index