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. It's possible to change defaultDropAction during drag?

It's possible to change defaultDropAction during drag?

Scheduled Pinned Locked Moved Unsolved General and Desktop
qdrag drag drop
1 Posts 1 Posters 298 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.
  • C Offline
    C Offline
    calanor
    wrote on 16 Aug 2018, 10:00 last edited by
    #1

    In drag->exec I decide the supportedActions and the defaultDropAction ( ...action will be proposed when the user performs a drag without using modifier keys).

    But I need over some widgets to change the defaulDropAction in dragEnterEvent or dragMoveEvent while still allowing the user to force the other supportedActions actions using modifier keys.

    There is no setDefaultDropAction in event class or similar.

    How could I do this?

    This is my first post,
    Thank you all in advance.

    1 Reply Last reply
    0

    1/1

    16 Aug 2018, 10:00

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved