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

QRect QVariant::toRect (  )  const

Returns the variant as a QRect if the variant has type() Rect; otherwise returns an invalid QRect.

See also:
canConvert(), convert()

Definition at line 2002 of file qvariant.cpp.

Referenced by QAbstractFormBuilder::createProperty(), QGraphicsView::inputMethodQuery(), QGraphicsTextItem::inputMethodQuery(), QGraphicsScene::inputMethodQuery(), and QTextEdit::inputMethodQuery().

{
    return qVariantToHelper<QRect>(d, Rect, handler);
}


Generated by  Doxygen 1.6.0   Back to index