坐标转换
QPainter painter(this);
//调用激活抗钜齿功能
painter.setRenderHint(QPainter::Antialiasing);
//重新定位坐标起始点
painter.translate(width() / 2, height() / 2);
painter.scale(side / 200.0, side / 200.0);
//坐标刻度单位
==============
旋转角度(时钟)
painter.setPen(Qt::NoPen);//没有边界
painter.setBrush(hourColor);//用来填充颜色
//旋转坐标系
painter.rotate(30.0 * ((time.hour() + time.minute() / 60.0)));
//填充时针的区域(hourHand多边形的点数组,3个点)
painter.drawConvexPolygon(hourHand, 3);