Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QML serialization for saving whatever on the image
QtWS25 Last Chance

QML serialization for saving whatever on the image

Scheduled Pinned Locked Moved QML and Qt Quick
4 Posts 2 Posters 1.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    econtech
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    • E Offline
      E Offline
      econtech
      wrote on last edited by
      #2

      Any ideas related the above.

      1 Reply Last reply
      0
      • T Offline
        T Offline
        Tân Ngọc Đỗ
        wrote on last edited by
        #3

        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)

        1 Reply Last reply
        0
        • T Offline
          T Offline
          Tân Ngọc Đỗ
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved