如何在QGroundControl的标题中放置空格?

问题描述 投票:0回答:2

是否可以将空白放在QGroundControl中?我对此并不陌生,对QML或qmake不太了解。

我想将标题从“ QGroundControl”更改为“ Q Ground Control”。我尝试在下一行的“ qgroundcontrol.pro”中进行更改,但这没有达到我的预期。

FROM: DEFINES += QGC_APPLICATION_NAME=\"\\\"QGroundControl\\\"\"

TO: DEFINES += QGC_APPLICATION_NAME=\"\\\"Q Ground Control\\\"\"

结果是: Q -DGround -DControl

必填结果: Q地面控制

c++ qml qt-creator qgroundcontrol
2个回答
0
投票

[好,我想我有一个适合您的解决方案:

QGC = '\\"Q Ground Control\\"'
DEFINES += QGC_APPLICATION_NAME=\"$${QGC}\"

尝试一下,让我们知道它的进展。


0
投票

通过使用正确的转义序列解决了我的问题:

DEFINES += QGC_APPLICATION_NAME='"\\\"Custom QGroundControl\\\""'
© www.soinside.com 2019 - 2024. All rights reserved.