Hello,
I want to save the position and orientation of a QGraphicsItem, so I can load it from file again. What would be the best way to do this? Am I obligated to store a whole transformation matrix for each item or is there a better way?
Jeroen
Hello,
I want to save the position and orientation of a QGraphicsItem, so I can load it from file again. What would be the best way to do this? Am I obligated to store a whole transformation matrix for each item or is there a better way?
Jeroen
Not sure but you can...
1) store the co-ordinates of the item in QByteArray and stroe QByteArray into file, on load read this file and set item's co-ordinates
or
2) use the QSettings to store the the item co-ordinates
You can design ur own data... like angle, scale, pos.
Bookmarks