pymel.core.windows.toQtMenuItem

toQtMenuItem(mayaName)

Given the name of a Maya UI menuItem, return the corresponding QAction. If the object does not exist, returns None

This only works for menu items. for Menus, use toQtControl or toQtObject

Note

Requires PySide