qt-QMainWindows

设置标题文字

w.setWindowTitle(QObject::tr("remoteCom ver: 2020.06.10"));

设置中心组件

remoteCom::remoteCom(QWidget *parent, Qt::WFlags flags)
: QMainWindow(parent, flags)
{
ui.setupUi(this);
this->setCentralWidget(new QTextEdit(this));
}