QPixmap m_wholeScreenPixmap;
m_wholeScreenPixmap.load(ICON_PATH"/screen0.png");
然后定时器调用函数里更改需要画的坐标点,, update();
然后在
void QScreenWindows::paintEvent(QPaintEvent *event)
{
QRect rect = event->rect();
*/
bitBlt(this,QPoint(0,0),&m_wholeScreenPixmap,QRect(ScreenDrawPointX,ScreenDrawPointY,WINDOW_W,WINDOW_H));
}
}
就可以了。。