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

Qt designer source code customization



  • Hi All,

    I am new here.
    I would like to customize Qt Designer to my own preferences. To do so, I would like to change the source code of Qt Designer.
    Or is there any other way to add some code into Qt Designer so that it will do additional tasks like creating GUI dynamically or change elements?

    Thanks in advance.


  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What do you mean by creating GUI dynamically and change elements ?



  • Hi,

    So, what I want is to change Qt designer in a way, that it could behave like in this scenario:
    I have 5 widgets on a window. And let say there is a button on the same window or in Qt designer somewhere.
    When I push this button, Qt designer deletes or adds depending on what I want to the window.

    I am not sure if it is possible, but I was told to add some code to Qt designer source code so it behaves. In other way of saying, customize a bit Qt designer, it might not have all functionality, but just add and delete widgets.

    Is it possible?

    If it is, where can I start looking?

    Thanks in advance.


  • Lifetime Qt Champion

    So by clicking a button you would add the same button to each widget ?

    The best place to is Designer's sources



  • Hi,

    Can you please link me the source code file to which I have to add my code?

    Thanks.


  • Lifetime Qt Champion

    I can only point you to qttools/src/designer/src

    There you have the code of the application, for the rest you'll need to search in it



  • Ok,

    Thanks. I will look into the src.


Log in to reply