0

Is there a way that I put the white spaces in the QGroundControl? I am new to this and not sure much about QML or qmake.

I want to change title from “QGroundControl” to “Q Ground Control”. I tried to do the change in the “qgroundcontrol.pro” at the below line, but this didn’t worked as I was expecting.

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

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

The RESULT is: Q -DGround -DControl

Required Result: Q Ground Control

Khaksar
  • 333
  • 3
  • 17
  • It works for me, in Qt Creator 4.9.2. (Except that I have `DEFINES += QGC_APPLICATION_NAME="\"Q Ground Control\""` instead of `DEFINES += QGC_APPLICATION_NAME="\“Q Ground Control\”"` -- look carefully at those quotation marks!) – TonyK May 14 '20 at 18:11
  • @TonyK I am using Qt Creator 4.10.2 -- Based on Qt 5.13.2 (MSVC 2017, 32bit). – Khaksar May 14 '20 at 18:36
  • @TonyK : Sorry I gave the incorrect code. I just updated with the correct one in my original question. I tired the one you gave, that didn't worked either. Got a couple of compile time errors. – Khaksar May 14 '20 at 18:37
  • I am using the g++ compiler, not MSVC. Perhaps that is what makes the difference. What is the compiler command line (in the Compile Output window)? – TonyK May 14 '20 at 18:37
  • @TonyK Any suggestions with my problem in case of MSVC? – Khaksar May 14 '20 at 18:40
  • @TonyK : **Here is the output of Compile Output Window:** jom: D:\build-qgroundcontrol-Desktop_Qt_5_12_6_MSVC2017_64bit-Debug\Makefile [release\QGroundControl.exe] Error 1 23:55:40: The process "F:\Qt\Qt5.12.6\Tools\QtCreator\bin\jom.exe" exited with code 2. Error while building/deploying project qgroundcontrol (kit: Desktop Qt 5.12.6 MSVC2017 64bit) The kit Desktop Qt 5.12.6 MSVC2017 64bit has configuration issues which might be the root cause for this problem. When executing step "Make" – Khaksar May 14 '20 at 19:03
  • Don't you have a _compiler command line_ to show us from the Compile Output window? – TonyK May 14 '20 at 19:45
  • @TonyK : I didn't found the _compiler command line_ in the **Compile Output Window**. But here is the complete output of the Compile Output Window after building the complete project. ----> https://file.io/74tVR4Vs – Khaksar May 15 '20 at 12:37
  • file.io 404 Page not found. (Also, you said that you tried my suggestion, and you got "a couple of compile time errors". So you _do_ have a compiler command line for that experiment?) – TonyK May 15 '20 at 13:03
  • sorry for broken link, here is the _new link_ of log file: https://drive.google.com/file/d/1AIZZ6uy6VaDbZL-L_ITlJESednTQcKNs/view?usp=sharing Actually I am not getting anything about Compiler command line, can you please help me with a snapshot or something useful! – Khaksar May 15 '20 at 13:27
  • Every command that starts with `cl -c` is a compiler command line. There are hundreds of them in that huge file. – TonyK May 15 '20 at 13:51
  • Yes, there are so many lines which starts with **cl -c**. Any other way to get around this? – Khaksar May 15 '20 at 15:01

2 Answers2

0

OK, I think I have a solution for you:

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

Try it and let us know how it goes.

TonyK
  • 16,761
  • 4
  • 37
  • 72
  • I really appreciate your efforts in doing help. But my problem is fixed using the following escape sequence which I got from another source: DEFINES += QGC_APPLICATION_NAME='"\\\"Custom QGroundControl\\\""' – Khaksar May 15 '20 at 18:17
0

Fixed my issue by using the correct escape sequence:

DEFINES += QGC_APPLICATION_NAME='"\\\"Custom QGroundControl\\\""'
Khaksar
  • 333
  • 3
  • 17