Qt Creator - 如何查看设计器的代码? [英] Qt Creator - how to see the code of the designer?

查看:73
本文介绍了Qt Creator - 如何查看设计器的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Qt Creator.

我正在使用信号和槽编辑器,我想查看它生成的代码.

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

如何查看代码?

谢谢!

推荐答案

假设您在 Qt Creator 中有一个名为 widget.ui 的表单文件.

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

编译项目后,您将在项目文件夹中找到一个名为 ui_widget.h 的文件.

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

如果你打开它,你会看到由 uic 工具.

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

这篇关于Qt Creator - 如何查看设计器的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆