How to use QAction.menu() in PyQt6

Phil Thompson phil at riverbankcomputing.com
Sun May 16 12:19:47 BST 2021


On 16/05/2021 11:40, JakobDev wrote:
> I need the menu function of QAction in one of my applications that I
> want to port to Qt 6. The changelog at
> https://doc.qt.io/qt-6/widgets-changes-qt6.html 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?

https://www.riverbankcomputing.com/static/Docs/PyQt6/api/qtgui/qaction.html#qaction-in-widget-applications

Phil


More information about the PyQt mailing list