QT TextEdit 自适应窗口大小,填满窗口 ——基于 函数

setCentralWidget(ui->textEdit); //将txtEdit设置为中心组件,自动填充整个工作区

原文地址:https://www.cnblogs.com/chinasoft/p/15218093.html