Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Saving Draggable components
QtWS25 Last Chance

Saving Draggable components

Scheduled Pinned Locked Moved Unsolved General and Desktop
9 Posts 3 Posters 506 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.
  • C Offline
    C Offline
    Chaitanya.Ampolu
    wrote on last edited by
    #1

    Screenshot (126).png I have created a screen contains button ,Image widget and Label Widget and i am able to drag these widgets using Drag component, Now how can i save this edited screen .

    Above image is an example screen.

    jsulmJ 1 Reply Last reply
    0
    • C Chaitanya.Ampolu

      Screenshot (126).png I have created a screen contains button ,Image widget and Label Widget and i am able to drag these widgets using Drag component, Now how can i save this edited screen .

      Above image is an example screen.

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Chaitanya-Ampolu said in Saving Draggable components:

      Now how can i save this edited screen

      Do you mean a screen-shot?

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chaitanya.Ampolu
        wrote on last edited by Chaitanya.Ampolu
        #3

        Actually what i've uploaded is Screen shot of an example qml file
        my task is to save the position of an image widget after using drag component

        jsulmJ 1 Reply Last reply
        0
        • C Chaitanya.Ampolu

          Actually what i've uploaded is Screen shot of an example qml file
          my task is to save the position of an image widget after using drag component

          jsulmJ Online
          jsulmJ Online
          jsulm
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Chaitanya-Ampolu https://forum.qt.io/topic/90459/taking-screenshot-of-a-specific-focused-window/2

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          3
          • mrjjM Offline
            mrjjM Offline
            mrjj
            Lifetime Qt Champion
            wrote on last edited by
            #5

            Hi
            Do you mean save its type and location and image info so
            you can load this custom file at some other point and recreate the window as it looks now ?

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chaitanya.Ampolu
              wrote on last edited by Chaitanya.Ampolu
              #6

              Hi
              Yeah similarly like that , Basically i should edit Output screen that it should automatically update changes in main.qml

              mrjjM 1 Reply Last reply
              0
              • C Chaitanya.Ampolu

                Hi
                Yeah similarly like that , Basically i should edit Output screen that it should automatically update changes in main.qml

                mrjjM Offline
                mrjjM Offline
                mrjj
                Lifetime Qt Champion
                wrote on last edited by
                #7

                @Chaitanya-Ampolu
                Hi
                I have not seen anything that lets you save a running QML app back to a QML file.

                C 1 Reply Last reply
                0
                • mrjjM mrjj

                  @Chaitanya-Ampolu
                  Hi
                  I have not seen anything that lets you save a running QML app back to a QML file.

                  C Offline
                  C Offline
                  Chaitanya.Ampolu
                  wrote on last edited by
                  #8

                  @mrjj can i explain you again
                  i have to make running QML screen editable( change position of widgets ) and it should be saved, so is there any way to make editable QML screen

                  jsulmJ 1 Reply Last reply
                  0
                  • C Chaitanya.Ampolu

                    @mrjj can i explain you again
                    i have to make running QML screen editable( change position of widgets ) and it should be saved, so is there any way to make editable QML screen

                    jsulmJ Online
                    jsulmJ Online
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #9

                    @Chaitanya-Ampolu You can use https://doc.qt.io/qt-5/qml-qt-labs-settings-settings.html to store the size and position of your UI elements in a configuration file. You then can read this file when the app starts and adjust the UI as specified there.

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    1 Reply Last reply
                    4

                    • Login

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