首頁  >  問答  >  主體

python - Qt designer无法保存ui文件

用QT designer 编辑ui界面后保存, 弹出 This file contains top level spacers. They will not be saved.Perhaps you forgot to create a layout 提示框! 要怎么处理?

PHP中文网PHP中文网2723 天前3204

全部回覆(1)我來回復

  • PHPz

    PHPz2017-04-18 10:23:38

    就像

    這裡說的,不能在top level上放spacer,像下面這樣就會報上面的錯誤

    spacer只能放在Layout裡面,像下面這樣就能正常保存了

    回覆
    0
  • 取消回覆