You would need to subclass QToolBox and (re)-implement some or all of mousePressEvent, mouseMoveEvent, dragEnterEvent, dragMoveEvent, dropEvent.
Also, have a look at the "Drag and Drop":/doc/qt-4.8/dnd.html documentation. It should give you a hint on how to start.