开发者

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

开发者 https://www.devze.com 2023-01-20 13:57 出处:网络
I\'m using开发者_如何转开发 Qt Creator. I\'m using the signals and slots editor, and I want to see the code it generates.

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!


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消