qt设置mainWindow窗口的标题和图标。

this->setWindowTitle("铁路出行信息查询系统");
this->setWindowIcon(QIcon(":/new/prefix1/2.jpg"));

效果图如下:

猜你喜欢

转载自blog.csdn.net/weixin_39770778/article/details/85234758