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. Drag and drop mechanism implementation problem

Drag and drop mechanism implementation problem

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

    Hello,

    I have a simple task for which I am not able to find a solution. Basically, on my screen I have a main menu on the left that contains a tree view and a workspace which fills the rest of the screen. I want to implement drag and drop mechanism where the user selects item from the tree view (using press and hold), drags the newly created component above the workspace and drops it there. I need to mention that the workspace has a grid for snapping so I have to be able to know where the component was released, relative to the grid. The problem arises with the mouse areas of both the tree view and the workspace which essentially is a rectangle. My app catches the onPressAndHold event on the tree view, but I can't find a way to catch the release event on the workspace.

    Thank you in advance

    1 Reply Last reply
    0
    • ODБOïO Offline
      ODБOïO Offline
      ODБOï
      wrote on last edited by
      #2

      Hi,
      Have you tryed to use "Connections" type to catch the release event on the workspace ?

      LA

      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