Drag-and-Drop widget outside my application widgets



  • I have a Qt Desktop aplication which has several top-level widgets. Subwidgets of top-level widgets can be moved between top-level widgets by using drag-and-drop mechanism.

    The problem i have now is to drop a sub-widget outside any of existing top-level widgets and create a new top-level widget to contain this one. Lets call this separation.

    Can this be done using drag-and-drop? I could not find a way where my dropEvent goes? Can i want to handle the drop event in my application even if the drop place is not allowed? Maybe a mouse release or something?

    I cannot change everything now but also a question for the future. Is docking/undocking a better way to do this?

    Regards Mihai


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.