View Full Version : Customizing UIC (User Interface Compiler)

13th October 2009, 11:27

Does anybody know, if there is a way to customize the UIC process?

I would like to have a common base class for all my generated Ui classes, with virtual functions for setupUi() and retranslateUi(). Can I tell the UI compiler to inherit always from a base class?

Some of my UI files are > 500 kb. As a result of this, the generated header files are quite big and are a problem for the linker \ code optimizer. Is it true, that there is no way to separate the the definition and the declaration of the 2 functions above into a header and a cpp file?

13th October 2009, 18:53
It certainly doesn't have an option for that.

Is there a reason you want multiple cpp files to access the same header? Otherwise it's not really a problem?