def getMayaWindow():
ptr = omui.MQtUtil.mainWindow()
if ptr is not None:
return wrapInstance(long(ptr), QObject)
class DataTextures(QDialog):
def __init__(self, parent=getMayaWindow()):
super(DataTextures, self).__init__(self,parent)
DataTextures.__init__( self, *args)
# load UI
loader = QUiLoader()
file = QFile('/tmp/test.ui')
file.open(QFile.ReadOnly)
dataTexturesWidget = loader.load(file, self)
I'm having issues on osx where the window is popping behind maya main window, seemed to be fine on linux.
Any thoughts ?
-Robert