编译后Qt GUI不会改变 [英] Qt GUI doesnt change after compilation

查看:41
本文介绍了编译后Qt GUI不会改变的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用编译并运行的 Qt 设计器创建了一个 GUI.
然后我对 GUI 进行了一些更改并再次重新编译,但 GUI 保持不变.
即使我删除小部件并重新编译它们也会出现...

I created a GUI using the Qt Designer compiled and run.
Then I made a few changes in the GUI and recompiled again but the GUI remained the same.
Even if I delete the widgets and recompile they appear...

我尝试了 Clean AllClean Project 但没有成功...
可能是什么问题?

I tried Clean All and Clean Project but no success...
What might be the problem?

推荐答案

您可以使用以下命令重新编译您的 UI.它对我有用.

You can recompile your UI with the following command. It worked for me.

uic mainwindow.ui>ui_mainwindow.h

这篇关于编译后Qt GUI不会改变的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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