I drag a QStandardItem from a QListView over a QWidget. In my QWidget class I implemented dragEnterEvent and dropEvent:
void MyWidget::dragEnterEvent(QDragEnterEvent *event){
qDebug() << "drag entering: ";
}
void MyWidget::dropEvent(QDropEvent *event){
qDebug() << "drop received!";
}
It receives the dragEntering, but not the dropping. I have already set the acceptDrops to true in the constructor of the QWidget class. What am I missing? Thanks for help!
MyWidget
? – vahanchoMyWidget
is in? – alseether