Hi all, real newbie here. I'm working with a custom qGraphicsItem. When i hover over it i display a contact menu. Works great

Qt Code:
  1. void pieces::hoverEnterEvent(QGraphicsSceneHoverEvent *event)
  2. {
  3.  
  4.  
  5. myMenu->clear();
  6. setCursor(Qt::ClosedHandCursor);
  7. sandbox *myScene = dynamic_cast<sandbox *>(scene());
  8. if(myScene->mode()==sandbox::ModeMakeConnection)
  9. {
  10. QAction action1("EchoConnect", this);
  11. myMenu->addAction(&action1);
  12. myMenu->exec(QPoint(event->screenPos().x(),event->screenPos().y()));
  13. }
  14. }
To copy to clipboard, switch view to plain text mode 

however i'm trying to close it when i hover off. Running into issue here. I can't call the QGraphicsItem's hover leave because my focus is on the menu. so i'm trying to connect to qMenu's leaveEvent and failing. Here's what i'm trying:

Qt Code:
  1. myMenu = new QMenu();
  2. connect(myMenu, SIGNAL(QWidget::leaveEvent(QEvent* event)), this, SLOT(popupLeave()));
To copy to clipboard, switch view to plain text mode 

but i get QObject::connect: No such signal QMenu::QWidget::leaveEvent(QEvent* event)

Any pointers??

Thanks in advance