How to use in PyQt6

JakobDev jakobdev at
Sun May 16 11:40:51 BST 2021

I need the menu function of QAction in one of my applications that I
want to port to Qt 6. The changelog at says that, Member
functions that depend on types defined in QtWidgets (such as
QAction::menu() and QAction::setMenu()) are implemented as templates
that will be instantiated only when called. But how can I do that in PyQt6?

More information about the PyQt mailing list