QML serialization for saving whatever on the image
-
I have a QML application in which I create box (Rectangles) – each box can have other image – now I need to save the whole box with image into an image file. so I could load and reuse it later.
I couldn’t find anything about serialization in QML. Please advice.
-
You can use canvas to draw the border of image and load image into that border. After that you save the canvas to image file and re-load image (if needed)
-
For saving QML element into image, I still don't know how to do it with QT >5.0 any guide I have read are for 4.8. If you know that, you can share it