QPoint pos(mapToGlobal(QPoint(0, 0))); |
QPoint pos(mapToParent(QPoint(0, 0))); |
background = bgImage->copy(pos.x(), pos.y(), width(), height()); | background = bgImage->copy(pos.x(), pos.y(), width(), height()); |
bitBlt(this, 0, 0, &background); | bitBlt(this, 0, 0, &background); |