Last Updated: February 25, 2016
·
6.336K
· 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()