Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Is it possible to customize the UI compiler used in Qt widgets?



  • Hi,

    Recently my firm started wanting to create UIs and define all the actions, triggers etc via a configuration file. The more I think about it, the more I feel myself re-inventing the wheel. Qt already presents us with the ability to create UI and store them as XML files which the UI compiler converts into a ui_somename file. Now I can't change the requirements, so the configuration format would be different and would be much more rich in details about code flow.

    Hence, I was wondering if I could just maybe do something along the lines of inheriting the existing UI compiler classes and using those to maybe reduce my workload and re-use existing code which brings me to my question, is it possible to customize the UI compiler and if so, any links for how it can be done (I found nothing).


  • Qt Champions 2019

    @Ankit-Jain Since Qt is open source you can simply take a look at the source code.


Log in to reply