Qt 设计器不更新 gui [英] Qt designer does not update the gui
问题描述
之前有人在 Qt 设计器中编写了一个 GUI,现在我不得不修改一些小部分(即添加一个按钮/功能).
Someone wrote out a GUI in Qt designer earlier and now I have to modify some small parts (i.e. add a button/functionality).
前提:我在 Designer 中添加新功能/对 .ui 文件进行任何修改.我可以进入编辑模式,看到这对 .ui 文件的 xml 格式进行了更改
Premise: I add the new feature/make any modification to the .ui file in Designer. I can go to edit mode and see that this makes changes to the xml format of the .ui file
问题:当我构建和运行 Qt 时,显示的是旧版本的 .ui(没有我的功能升级).我尝试清理所有内容并运行 qmake,但无济于事.
Problem: When I build and run Qt, the old version of the .ui is what is shown (without my feature upgrades). I tried cleaning everything and running qmake, but to no avail.
关于为什么会发生这种情况的任何想法?
Any ideas for why this could be happening?
推荐答案
我遇到了同样的问题,当我在项目"模式下禁用Shadow Build"时它解决了.
I had the same problem and it was solved when I disabled "Shadow Build" in "Projects" mode.
UPD:仍然收到对这个答案的赞成票让我感到难过,原因有两个
UPD: Still receiving upvotes for this answer makes me sad for 2 reasons
- 这是微不足道的
- 这个问题在将近 5 年后仍然存在
这篇关于Qt 设计器不更新 gui的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!