void WaitConnect::drawWaitConnet(int temp) { QPainter painter(m_labelConnect); painter.translate(this->width()/2,this->height()/2); painter.setRenderHint(QPainter::SmoothPixmapTransform); painter.setRenderHint(QPainter::HighQualityAntialiasing); painter.save(); painter.rotate(temp); painter.drawPixmap(-100,-100,200,200,QPixmap(":/WaitConnect/Resources/Loading/loading.png")); painter.restore(); }
一是一种新的想法,哈哈,这种方式我感觉就是比较简单了,哈哈哈。