Qt应用程序标题 [英] Qt application title

查看:94
本文介绍了Qt应用程序标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发Qt应用程序

I'm developping a Qt application

我设法使用方法设置了主窗口标题

I managed to set the main window title using methode

setWindowTitle("my title");

无论如何更改应用程序顶部栏中的名称,它都不会影响gnome shell(ubuntu)顶部栏中显示的标题,也不会影响执行alt + tab时显示的标题.

however this changes the name in the application top bar, it doesn't affect the title displayed in the top bar of gnome shell (ubuntu) nor the title displayed when doing alt+tab.

如何更改?

我尝试在.pro文件中使用DEPLOYMENT.display_name变量

I've tried using the DEPLOYMENT.display_name variable in my .pro file

推荐答案

尝试在主代码中使用QCoreApplication :: setApplicationName(您的标题").

Try using QCoreApplication::setApplicationName("your title") in your main code.

这篇关于Qt应用程序标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆