Qt 4 comes with the tool uic3 for working with old .ui files. It can be used in two ways:
To generate headers and source code for a widget to implement any custom signals and slots added using Qt Designer 3.
To generate a new UI file that can be used with Qt Designer 4.