Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Is it possible to customize the UI compiler used in Qt widgets?
Forum Update on Monday, May 27th 2025

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

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 140 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ankit.Jain
    wrote on 25 May 2020, 10:35 last edited by
    #1

    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).

    J 1 Reply Last reply 25 May 2020, 10:39
    0
    • A Ankit.Jain
      25 May 2020, 10:35

      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).

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 25 May 2020, 10:39 last edited by
      #2

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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1

      1/2

      25 May 2020, 10:35

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved