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. Replace a moved element into a Flow
QtWS25 Last Chance

Replace a moved element into a Flow

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 2.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.
  • C Offline
    C Offline
    Clemms
    wrote on last edited by
    #1

    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
    0
    • H Offline
      H Offline
      hhartz
      wrote on last edited by
      #2

      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
      0
      • K Offline
        K Offline
        Kxyu
        wrote on last edited by
        #3

        add a state for changed position and for first position

        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