具有特殊字符的Qt目标 [英] Qt Target with special characters

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

问题描述

我有一个QT应用程序,并且知道我需要将应用程序名称更改为"A& B".

I have a QT application and right know I need to change the app name to something like "A&B".

我试图更改我的 .pro 文件中的 TARGET ,但是我遇到了& 字符的问题 macOS .

I have tried to change the TARGET in my .pro file, but I am having problems with the "&" character in macOS.

我还尝试使用qmake函数,例如 val_escape system_quote shell_quote ,但对我没有任何帮助.

I have also tried to use qmake functions like val_escape, system_quote, shell_quote but nothing worked for me.

作为最后的资源,我尝试更改.plist文件中的 CFBundleName ,该文件适用于应用菜单等,但不适用于应用名称(仍然存在& ;,因为 make 正在考虑将该应用称为 B.app ,而不是 A& B.app

As a last resource, I have tried to change the CFBundleName in my .plist file, which worked for app menus and etc, but not for the app name (still having problems with &, as make is considering the app to be called B.app instead of A&B.app

您知道其他解决此问题的方法吗?甚至有没有办法使用名称为 A& B.app 的macOS应用程序?

Do you know any other way to get this problem fixed? Is there even a way to have a macOS application with a name like A&B.app?

预先感谢

推荐答案

我通过在配置中添加DisplayName并在Info.plist中更改applicationDisplayName来解决此问题. 还是谢谢你.

I fixed this by adding a DisplayName to my configuration and changing the applicationDisplayName in the Info.plist. Thanks anyway.

这篇关于具有特殊字符的Qt目标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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