Erase/delete rect from QImage/QPixmap
painterFrame = QPainter(pixmap)
painterFrame.setCompositionMode(QPainter.CompositionMode_Source)
painterFrame.fillRect(0, 0, 500, 500, Qt.transparent)
painterFrame.end()
Written by Rafael Oliveira
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Qt
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#