Send event on hover of QMenu items
-
Quick question , how can i send events on hover of QMenu Action items , I am doing something like this but don't see the call come to the slot , what am i doing wrong here ?
QObject::connect(menu->menuAction(), SIGNAL(QAction::hovered()), this, SLOT(hover()));
I also want to send some event on "hover end" of action item . Can someone help me with this ?
Thanks
-
Quick question , how can i send events on hover of QMenu Action items , I am doing something like this but don't see the call come to the slot , what am i doing wrong here ?
QObject::connect(menu->menuAction(), SIGNAL(QAction::hovered()), this, SLOT(hover()));
I also want to send some event on "hover end" of action item . Can someone help me with this ?
Thanks
@Sougata1996
Please start by doing yourself a favor and changing over to the new signal & slots syntax. You might even find that tells you what is wrong.... -
Hi,
Beside the good suggestion of @JonB, you should also have a runtime warning that there's something wrong with your connection.
That said, QAction has no physical aspect. The hovered signal you are looking for is in QMenu itself.
-
Thanks for the help , i was able to find a solution .