2014-02-12

Python and Qt: Compiling a *.ui file

Simply do:

pyuic4 -o target.py source.ui

You don't have pyuic? Then do (depending on your OS):
sudo zypper install python-qt4-devel
sudo apt-get install python-qt4-devel

Why do I write it here? Because I forget that all the time.