Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

It's possible to change defaultDropAction during drag?



  • 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.


Log in to reply