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. How to force the drop action to be copyaction when the drop location is some other application?
Forum Updated to NodeBB v4.3 + New Features

How to force the drop action to be copyaction when the drop location is some other application?

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

    Hello, I have subclassed QMimeData and drag&drop works perfectly fine within my widget - for both copyAction and MoveAction. Data gets copied and moved as needed (based on shift / ctrl keys etc.)

    For compatibility I am supporting other simple formats such as text/plain - the major problem is, I cannot allow 'move' operation for the drops to other applications for these compatible formats.

    For example, I allow my data to be dropped from my widget to some textbox - but only as long as it is a 'copyAction'. But, I do not see any way of forcing this.

    How to force the drop action to be 'copy action' for external widgets, while allowing the copy/move within my widget?????

    After all, I cannot _delete _ my data just because they exported it in some compatible format to some text box..ah...

    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