Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

QToolBox and the drag_and_drop



  • I have a QToolBox.
    I'd like to make it draganddrop capable.
    But I have no idea, how can I solve this.
    In the class doc I've found nothing...
    Any idea?



  • 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.


Log in to reply