Hello Pythoners,
I began to play with PySide by creating widgets, buttons, etc, but also want to 
give QtDesigner a try, to look how it behaves in nuke.
Unfortunately, i didn't succeed in.
It always returned me : "RuntimeError: Unable to open ui file"
I tried different things and i ended up to make the more minimalistic code to 
avoid side effects.

to display only a window it would be :

    from PySide import QtGui
    w = QtGui.QMainWindow() 
    w.show()

same concept with .ui loading would be :

    from PySide import QtGui
    from PySide import QtCore
    from PySide import QtUiTools
    
    w = QtGui.QMainWindow()
    loader = QtUiTools.QUiLoader()
    file = QtCore.QFile("pyQtRender.ui")
    file.open(QtCore.QFile.ReadOnly)
    myWidget = loader.load(file)
    file.close
    w.show()

To avoid maximum error i use the provided foundry's sample "pyQtRender.ui" 
copied in the directory given by "QtUiTools.QUiLoader().pluginPaths()"

It's surely a noob problem, but i would appreciate if someone could show me the 
minimal code to make the QtDesigner's ui file works.
I hope someone can shed some light for me,
Cheers
philhub
_______________________________________________
Nuke-python mailing list
Nuke-python@support.thefoundry.co.uk, http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python

Reply via email to