Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Unsolved Save the contents of QGraphicsscence and QGraphicsView

    General and Desktop
    2
    4
    586
    Loading More Posts
    • 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.
    • Q
      Qt Enthusiast last edited by

      I am using QGraphicsscence in my tool and QGraphicsView to display it Can I save the contents of the same in text format or any other format that can be used for regressions.

      1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        You must program it your self for save and loading.
        Depending on how many different objects you have, it might be lots of work.

        Why not just create a test function that create the same scene each time?

        1 Reply Last reply Reply Quote 1
        • Q
          Qt Enthusiast last edited by

          For regressions testing

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @Qt Enthusiast last edited by

            @Qt-Enthusiast

            yes I understand.

            Instead of loading a scene, you just construct it from code.
            much less work than being able to load and save to a file format.

            1 Reply Last reply Reply Quote 2
            • First post
              Last post