16,216
社区成员
发帖
与我相关
我的任务
分享
scene->setBackgroundBrush(QBrush(QColor(170,170,170) , Qt::CrossPattern));
view = new QGraphicsView(scene);
double d = (double)curValue/50;
if (d < 0.07 )
return;
QMatrix oldMatrix = view->matrix();
view->resetMatrix();
view->translate(oldMatrix.dx(), oldMatrix.dy());
view->scale( d, d );