You can always reimplement QWidget::mousePressEvent(QMouseEvent*) and create your own QDrag object specifying the drag type (move or copy) by hand.
You shouldn't ask two very different questions in the same thread (and especially you shouldn't ask this one at all :P ). All you have to do is to useto get a pointer of the type you're interested in. Then you shall use friendship to let your tree widget access private members of your main window.Qt Code:
qobject_cast<MyMainWindow*>(parentWidget())To copy to clipboard, switch view to plain text mode
Bookmarks