Reputation: 63
I have an object QPixmap, how to get his reflection without QImage? Now I do it using QImage (PyQt4):
tmp_image = QImage("./templates/{type}/{name}.png".format(type=tpl_type, name=tpl_name))
pixmap_reflect = QPixmap().fromImage(tmp_image.mirrored(horizontal=True, vertical=False))
Upvotes: 6
Views: 5390