怎么让图片旋转的时候大小不变?
static int x = 0;
QMatrix leftmatrix;
leftmatrix.rotate(x);
leftmatrix.translate(500, 500);
ui.label->setPixmap(QPixmap("D:/test2.png").transformed(leftmatrix, Qt::SmoothTransformation));
ui.label->setScaledContents(true);
ui.label->show();
if (x == 360)
{
x = 0;
}
x += 2;