PyQt6: Missing QAction.setMenu or equivalent
Ales Erjavec
ales.erjavec324 at gmail.com
Wed Apr 21 14:58:36 BST 2021
Hi
In Qt6 QAction was moved to QtGui module and is therefore missing
`setMenu(QMenu)`, `menu()` , or rather the methods are implemented as
templates
that will be instantiated only when called
(https://doc.qt.io/qt-6/widgets-changes-qt6.html#qaction-qactiongroup).
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