Qt Forum

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

    Call for Presentations - Qt World Summit

    Replace a moved element into a Flow

    QML and Qt Quick
    3
    3
    1852
    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.
    • C
      Clemms last edited by

      Hello everybody.

      I'm using a flow item to order simple rectangles. These rectangles are able to move with a mouse drag. I would like them to be replaced to their first place with a double click.

      Is it possible ?

      Thanks

      1 Reply Last reply Reply Quote 0
      • H
        hhartz last edited by

        You should be able to store it's position when you start the drag. If you add the code you have so far it might be easier to help you..

        --

        1 Reply Last reply Reply Quote 0
        • K
          Kxyu last edited by

          add a state for changed position and for first position

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