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

bool QRectF::isValid (  )  const [inline]

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

A valid rectangle has a width() > 0 and height() > 0. Note that non-trivial operations like intersections are not defined for invalid rectangles. A valid rectangle is not empty (i.e., isValid() == !isEmpty()).

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

Definition at line 662 of file qrect.h.

Referenced by QTextLayout::draw(), and QTextDocument::drawContents().

{ return w > 0. && h > 0.; }


Generated by  Doxygen 1.6.0   Back to index