0
点赞
收藏
分享

微信扫一扫

Qt<ui界面MianWindow窗口图标和标题>

哈哈我是你爹呀 2022-04-20 阅读 71
qt

 实现MianWindow窗口图标和标题的自定义,如下图: 

//创建窗口对象
MainWindow w;
//改变窗口图标:
w.setWindowIcon(QIcon("图片路径"));
//改变标题:
w.setWindowTitle("name");
//窗口显示
w.show();
举报

相关推荐

0 条评论