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

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

Set the top-left corner of the rectangle to the given position. May change the size, but will never change the bottom-right corner of the rectangle.

See also:
topLeft(), moveTopLeft()

Definition at line 679 of file qrect.h.

References setLeft(), setTop(), QPointF::x(), and QPointF::y().

{ setLeft(p.x()); setTop(p.y()); }

Generated by  Doxygen 1.6.0   Back to index