The drag and drop example code [qt-project.org] should do what you want. Look for how they uses states and the ParentChange object to parent the drag item to the root while it’s being dragged.
If this doesn’t work, either post some code or specify what you’re doing differently that doesn’t work.
↧