Simulate QMenu hover on a QAction?

Maurizio Berti maurizio.berti at
Tue Jul 27 15:16:34 BST 2021

Il giorno mar 27 lug 2021 alle ore 09:33 Matic Kukovec <
kukovecmatic at> ha scritto:

> I just rechecked, and yes, I'm not using a QAction, but a QWidgetAction on
> which I first set a default widget with *setDefaultWidget*,
> which is a groupbox with a few labels with text/images, then add a menu
> with *setMenu*.

Uhm. I see a QComboBox that shows what appears to be a QMenu instead of the
standard popup, so, yes, that could be the issue, especially if you're
overriding the popup behavior on mouse press.
I suggest you to share a minimal reproducible example so that we could
better understand what's going on.

È difficile avere una convinzione precisa quando si parla delle ragioni del
cuore. - "Sostiene Pereira", Antonio Tabucchi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the PyQt mailing list