Qt Creator - how to see the code of the designer?

2019-08-09 10:37发布

I'm using Qt Creator.

I'm using the signals and slots editor, and I want to see the code it generates.

How can I see the code?

Thanks!

2条回答
时光不老,我们不散
2楼-- · 2019-08-09 11:14

when you use qt creater, this one is going to create a file with the name of your project, in my case it is called "build-prueba-Desktop_Qt_5_7_0_GCC_64bit-Debug", then in that file you have to look for a file with the "ui_" prefix, into that, you have the code you need

查看更多
孤傲高冷的网名
3楼-- · 2019-08-09 11:18

Let's say you have in Qt Creator a form file called widget.ui.

Once you've compiled your project, you'll find in your project folder a filed called ui_widget.h.

If you open it, you'll see the code generated by the uic tool.

查看更多
登录 后发表回答