nsjttw
Last Updated: February 25, 2016
·
4.737K
· rafaelcgo

Erase/delete rect from QImage/QPixmap

painterFrame = QPainter(pixmap)

painterFrame.setCompositionMode(QPainter.CompositionMode_Source)

painterFrame.fillRect(0, 0, 500, 500, Qt.transparent)

painterFrame.end()