Qt Layout on QMainWindow

后端 未结 4 2035

I designed a QMainWindow with QtCreator\'s designer. It consists of the default central widget (a QWidget) which contains a QVBo

4条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-14 00:24

    Add at least one widget on your MainWindow. Then select your window by clicking on it and click on the VerticalLayout Button at the top of QTCreator. You Vertical Layout is automatically added to the central widget and fills all the surface.

提交回复
热议问题