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

void QPainter::scale ( qreal  sx,
qreal  sy 
) [inherited]

Scales the coordinate system by ({sx}, {sy}).

See also:
setWorldMatrix() {QPainter::Coordinate Transformations}{Coordinate Transformations}

Definition at line 2618 of file qpainter.cpp.

References QTransform::scale(), and QPainter::setTransform().

Referenced by QGraphicsItem::boundingRegion(), QPainter::drawImage(), QPainter::drawPixmap(), StarRating::paint(), ShapedClock::paintEvent(), WorldTimeClock::paintEvent(), AnalogClock::paintEvent(), MandelbrotWidget::paintEvent(), QLabel::paintEvent(), QTextDocument::print(), QWebFrame::print(), and RenderArea::transformPainter().

{
#ifdef QT_DEBUG_DRAW
    if (qt_show_painter_debug_output)
        printf("QPainter::scale(), sx=%f, sy=%f\n", sx, sy);
#endif

    QTransform m;
    m.scale(sx, sy);
    setTransform(m, true);
}


Generated by  Doxygen 1.6.0   Back to index