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 Drag and Drop by preset steps
Forum Updated to NodeBB v4.3 + New Features

QML Drag and Drop by preset steps

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 2.6k Views 1 Watching
  • 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.
  • F Offline
    F Offline
    frankiefrank
    wrote on last edited by
    #1

    Hey everyone. I'd like to implement a drag and drop on my dynamically created QML items but to snap them to preset pixel steps.

    For example, instead of the smooth dragging pixel by pixel, to have the item snap to an invisible 10 pixel by 10 pixel grid.

    Since there's such a nice built-in solution for regular drag and drop (the MouseArea drag property group) I was wondering if anyone has any advice on how to do it without reimplementing the whole drag and drop behavior.

    Thanks,
    Frankie

    "Roads? Where we're going, we don't need roads."

    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