百度说是我编译的版本不对
扔到
开始做自己的
这个用到了图片,所以大小是是确定的,唯一的好处就是特效可能更好看一点点
void Form_KM::paintEvent(QPaintEvent *) { QImage imagePointer(":/KM/Images/Km/Point.png"); QPainter painter(this); QRect rct(32,39,324,324); painter.translate(m_pointX,m_pointY); painter.rotate(-14+m_degreespeed); painter.translate((0 - m_pointX),(0-m_pointY)); painter.setRenderHint(QPainter::SmoothPixmapTransform,true); painter.drawImage(rct,imagePointer); painter.save(); painter.restore(); }