原因是:多次设置布局导致的 解决方法: 只需要在qt designer中对widget打破布局就好了 参考文档: https://blog.csdn.net/qq_35621436/article/details/108676895