Hi,
After some googling around I found a way to mirror items along X as well as Y axis. It was very simple infact,
item->scale(-1.0,1.0); //mirror along y axis
item->scale(1.0,-1.0); //mirror along y axis
item->scale(-1.0,1.0); //mirror along y axis
item->scale(1.0,-1.0); //mirror along y axis
To copy to clipboard, switch view to plain text mode
That worked fine except that the item left junk when mirrored , especially when the item was not symmetric about origin. Adding an update() before the scale solved the problem. I'm using qt 4.3 on kubuntu.
Is this a qt bug for sure ? (safe to double confirm
)
Bookmarks