Important: Please read the Qt Code of Conduct -

Understanding code generated by Qt Designer

  • Hi,

    I have been practicing with Qt Designer and I was hoping to learn more abut Qt in general by making changes in Qt Designer and see the code generated but to my surprise if you changed something in the properties panel it doesn't generate any code except some XML, I think.

    Is there a way to see the code generated by Qt Designer?

    How would you dynamically interact with properties you changed in Qt Designer?

    Can someone explain the main differences (limitations) between coding everything by hand vs using Qt Designer?

    I love the Qt Designer interface, so I would like to use it as much as possible.

    Thanks a lot


    1. designer ==> XXXX.ui
    2. uic XXX.ui -o ui_XXXX.cpp

  • Thank you for the link, I will take a look.

    Thanks a lot!

  • Actually, uic normally produces a .h file, not a .cpp file... Note that qmake will make sure that the uic tool is called on all .ui files that you list in the FORMS section of your .pro file.

Log in to reply