In the scene it gets the event, and with the qDebug() line I see on the console output
void myScene::dropEvent(QGraphicsSceneDragDropEvent * event)
{
qDebug() << "scene: dropEvent";
void myScene::dropEvent(QGraphicsSceneDragDropEvent * event)
{
qDebug() << "scene: dropEvent";
To copy to clipboard, switch view to plain text mode
'scene: drop Event'
I have a similar debug in the item dropEvent() method.
void MyNode::dropEvent(QGraphicsSceneDragDropEvent * event)
{
qDebug() << "Node: dropEvent";
}
void MyNode::dropEvent(QGraphicsSceneDragDropEvent * event)
{
qDebug() << "Node: dropEvent";
QGraphicsItem::dropEvent(event);
}
To copy to clipboard, switch view to plain text mode
But I do not see the 'Node: dropEvent' debug, so the QGraphicsItem doesn't get the event.
Bookmarks