PyQt6: Missing QAction.setMenu or equivalent

Ales Erjavec ales.erjavec324 at
Wed Apr 21 14:58:36 BST 2021


In Qt6 QAction was moved to QtGui module and is therefore missing
`setMenu(QMenu)`, `menu()` , or rather the methods are implemented as
that will be instantiated only when called

How do we set a menu on an QAction in PyQt6 since `QAction.setMenu`
does not exist?

Best wishes
Aleš Erjavec

More information about the PyQt mailing list