View缩放

View的缩放 

        QMatrix oldMatrix = view->matrix();
        view->resetMatrix();
        view->translate(oldMatrix.dx(), oldMatrix.dy());
        view->scale(xScale, yScale);

猜你喜欢

转载自blog.csdn.net/weixin_42101997/article/details/82928265