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. QTreeWidget defaultDropAction
Forum Updated to NodeBB v4.3 + New Features

QTreeWidget defaultDropAction

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 539 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.
  • Engineer50E Offline
    Engineer50E Offline
    Engineer50
    wrote on last edited by
    #1

    I am have a UI that includes two QTreeWidget objects. I have them configured so that I can drag items from one and drop them into the other. For that, the QTreeWidget that receives the items is configured with dragDropMode set to DropOnly and defaultDropAction set to CopyAction. I would also like the ability to move items within the QTreeWidget that receives the items. As far as I can tell, that would require that I change the dragDropMode to DragDrop and the defaultDropAction to MoveAction. Is there any way to set one configuration for items dragged in from the other QTreeWidget and to set a second configuration for items dragged within the QTreeWidget?

    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