Qt中QMainWindow对象设置layout的方法

本文为转载,记录,原文作者imred,地址:http://blog.csdn.net/imred/article/details/54387583 QMainWindow并没有setLayout()函数,因此不能使用setLayout()函数来设置layout,需要使用间接的方法。  需要做的只是先定义一个QWidget对象,然后使用QMainWindow::setCentralWidget()函
相关文章
相关标签/搜索