1、问题说明:在进行UI设计时,我们对控件的Tab编辑顺序没有多做考虑,其实也没多大影响,可能是自己添加控件时操作不当,导致警告出现。
Z-order 在Qt的ui文件中,定义的好像是显示部件的添加顺序。
2、解决办法:
具体办法是在网上一个帖子上看到的,原文链接如下:
https://stackoverflow.com/questions/6831546/qvision-widget-error-upon-compile
里面有一段文字说明了其中一个解决方法:Edit the ui file outside of Qt Creator. Delete the rows with 'zorder' tags. Then open in Qt Creator and compile again. It worked for me then perfectly, the warning did not appear any more.
简单的说就是在外部文件夹中找到警告出现的ui文件,用文本编辑器打开,使用搜索工具找到"zorder",出现 <zorder></zorder>的行段,将其删除后保存,打开QT,右击项目重新构建警告就会消失!