user2547541
user2547541

Reputation:

How to see auto-generated code by QT Designer (C++)?

I used QT Designer (Qt Creator 4.0.3) and followed the tutorial described here: http://doc.qt.io/qt-5/gettingstartedqt.html. I managed to create a simple GUI and some signals & slots. I am able to run the application too. However I cannot find the corresponding code for the GUI in any of my project files. How do I find the auto generated code ? or is it generated at run-time ?

The following are screenshots of my project: Project in Edit-mode

Project in Design mode

Upvotes: 0

Views: 1442

Answers (1)

Bupa
Bupa

Reputation: 121

After you build the code in qt creator, in the build folder. there is ui_mainwindow.h file will cretaed will have all the generated code.

build your code then either you can verify in the folder or hold ctrl button and click on #include "ui_mainwindow.h" will open the header file

Upvotes: 2

Related Questions