On my GUI I have a QListWidget and I’d like to be able to drag an item out of it and onto a QGroupBox I have nearby.
I’ve noticed that the dropEvent() function is a virtual function within QWidget – if I want to re-implement that for QGroupBox can I just implement that function alone?
Or do I have to actually subclass QGroupBox to make my own style of widget with a re-implemented dropEvent().
You have to subclass QGroupBox, implement the methods for supporting drag’n drop + use that class instead.
http://www.informit.com/articles/article.aspx?p=1405546