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

bool QRectF::isEmpty (  )  const [inline]

Returns true if the rectangle is empty, otherwise returns false.

An empty rectangle has width() <= 0 or height() <= 0. An empty rectangle is not valid (i.e., isEmpty() == !isValid()).

Use the normalized() function to retrieve a rectangle where the corners are swapped.

See also:
isNull(), isValid(), normalized()

Definition at line 659 of file qrect.h.

Referenced by QPainter::drawTiledPixmap(), operator &(), and QPainter::setClipRect().

{ return w <= 0. || h <= 0.; }

Generated by  Doxygen 1.6.0   Back to index