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

风格不统一 提交于 2020-01-06 03:59:38

问题


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!


回答1:


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.




回答2:


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



来源:https://stackoverflow.com/questions/3986140/qt-creator-how-to-see-the-code-of-the-designer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!