Hi,
I have a push button which is used as a 'trash can'. I want to be able to drag items to it from my QTableView which would then delete the item. Is this possible?
Regards,
Steve
Hi,
I have a push button which is used as a 'trash can'. I want to be able to drag items to it from my QTableView which would then delete the item. Is this possible?
Regards,
Steve
Yes. Reimplement dragEnterEvent and dropEvent for the button. Just make sure you only accept move actions (or delete the item in the dropEvent).
Hi,
Thought as much, guess I just subclass a QPushButton.
Regards,
Steve
Bookmarks