Drag&Drop exec function documentation



  • When drag&drop operation is performed between two apps and is started by calling exec() method with following parameters:

    drag->exec(Qt::MoveAction | Qt::CopyAction, Qt::MoveAction)
    

    the defaultDropAction (second parameter) which actually is Qt::MoveAction will be changed to Qt::CopyAction. I don't found any mention about it in documentation.

    Another thing. In the Fridge Magnets Example at the Dropping section it seems that following check is redundant:

    if (children().contains(event->source())) {
    

    Also same check is performed in ***dragMoveEvent()***. I think it should be

    if (event->source() == this) {
    

    like in the dropEvent()


  • Lifetime Qt Champion

    Hi,

    What version of Qt are you using ?
    On what platform ?
    Do you have a minimal compilable example that shows that behaviour ?


Log in to reply