Interoperating with Qt

mayatools.qt.get_maya_window()[source]

Get the main Maya window as a QtGui.QMainWindow.

mayatools.qt.maya_to_qt(maya_object)[source]

Convert a Maya UI path to a Qt object.

Parameters:maya_object (str) – The path of the Maya UI object to convert.
Returns:QtCore.QObject or None