The documentation shows how a QPicture can be "painted" repeatedly at different locations, but I would like to know if I can scale and/or rotate it as well ?
Are there any examples that demonstrate this ?
Thanks.
The documentation shows how a QPicture can be "painted" repeatedly at different locations, but I would like to know if I can scale and/or rotate it as well ?
Are there any examples that demonstrate this ?
Thanks.
The documentation also says that you have to use QPixmap if you want to modify a image
I think you misunderstand the question.
The docs say,OK, so then let me define a QPicture that draws a square.The QPicture class is a paint device that records and replays QPainter commands.
Next, I play the QPicture onto the current QPainter.
Next, I use the QPainter's scale method to double the scale and rotate method to turn things 45 degrees clockwise
Now, can I "play" my QPicture again and get a double-size, rotated square ?
You can rotate/scale the painter before drawing the picture on it.
Yes, it will work.
Bookmarks