Hello Ivan,
> It always returned me : "RuntimeError: Unable to open ui file" > My guess would be that QUiLoader() is either not finding the file, or does not know how to interpret it (wrong file format could be a reason). > Have you tried giving it the full path to your .ui file? You say you've copied it within a directory included in QtUiTools.QUiLoader(). pluginPaths(), but that won't make the loader look in that directory for .ui files. It's just the path it will use to look for custom (compiled) widgets and layouts. I agree with your guess concerning the file not being found, (as i was misunderstanding, the use of the pluginPaths() method) so i try to put the full pathname as you suggest, but it doesn't work either. Concerning a wrong file format it should not be the problem as i used the foundry sample .ui file. > The other potential problem I see from your example is the fact that, even if you get to load your .ui file, you're never adding " myWidget" to your mainWindow object. If your .ui already contains everything (ie, it's a dialog, or a window by itself), then you could just do: > myWidget.show() > Otherwise, if your .ui file only contains a Widget that you wish to include in your QMainWindow, you would probably want to add a Layout to QMainWindow, and then add myWidget to that Layout. It doesn't do the trick, but as i'm just beginning to learn PySide i think it might be a problem like this. I thought i could use QtDesigner without learning too much PySide but i guess it's a mistake !!! So going on coding PySide, anyway it's very interesting, and it helps to go deeper in the OOP Thanks Ivan for the help, and the time spent to explain. It really helps ! 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