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

QRect QRectF::toRect (  )  const [inline]

Returns a QRect based on the values of this rectangle. Note that the coordinates in the returned rectangle are rounded to the nearest integer.

See also:
QRectF(), toAlignedRect()

Definition at line 846 of file qrect.h.

Referenced by QRasterPaintEngine::drawTiledPixmap(), QGraphicsWidget::initStyleOption(), QTextEdit::inputMethodQuery(), QPlainTextEdit::inputMethodQuery(), QLabel::paintEvent(), QGraphicsView::paintEvent(), QAccessibleTextEdit::rect(), QGraphicsView::render(), QGraphicsScene::render(), and QPainter::setClipRect().

    return QRect(qRound(xp), qRound(yp), qRound(w), qRound(h));

Generated by  Doxygen 1.6.0   Back to index