How to detect drop action in qt designer..??
-
hello,
i'm doing drag and drop between two qtablewidget for this i have implemented the code
@ table->setDragEnabled(true);
table->setAcceptDrops(true); @
here everything working fine. now i want to catch instant of drop action ,i'm not getting how to accomplish it so can anyone please help regrading this ...!!!! -
There are two ways to do it.
-
Subclass QTableWidget and re-implement
@
void QTableWidget::dropEvent(QDropEvent * event)
@ -
Create an "event filter":https://qt-project.org/doc/qt-5/qobject.html#eventFilter and install it on your table.
-