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. drag and drop , dropping item in middle of a treeview
Forum Updated to NodeBB v4.3 + New Features

drag and drop , dropping item in middle of a treeview

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 446 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.
  • T Offline
    T Offline
    tony67
    wrote on last edited by
    #1

    Hi All,
    I have two tree views, one holds a list of items, the other one I drop copies of these items into. So I pick up the item on table view one and drop it onto table view 2. Tree 1 doesn't lose the item. This works fine in my code so long as I drop the item at the bottom of tree. If I try to drop the item at the top or in between items on the list it doesn't work. In creator I have the ui properties for the second table view set as follows
    showdropindicator ticked
    drag ticked
    dragdropmode droponly
    defaultdropaction ignoreaction

    Can anyone advise what I need to set creator widget settings to so I can drop from table view 1 into table view 2 with item at any position. Also so I can move items in tree table 2 up or down the list.

    Thankyou

    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