Matteo Mattei

Hello, my name is Matteo Mattei and this is my personal website. I am computer engineer with a long experience in Linux system administration and web software development.

linkedin rss twitter google+ github facebook

PySide and Qt-designer

The tool to transform myapplication.ui generated with qt-designer in, is called pyside-uic (if you use PySide, or pyuic if you use PyQt). Its usage is straightforward:


pyside-uic myapplication.ui >


C:\python27\scripts\pyside-uic.exe myapplication.ui >

But can happen the following error:

Traceback (most recent call last):
  File "C:\Python27\Scripts\", line 5, in <module>
    from pkg_resources import load_entry_point
ImportError: No module named pkg_resources

To fix the problem you need to intall setuptools from Now to use the generated file you need to add the following code to your application:

comments powered by Disqus