How can I put white spaces in Title of QGroundControl?

355 Views Asked by At

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

2

There are 2 best solutions below

0
On BEST ANSWER

Fixed my issue by using the correct escape sequence:

DEFINES += QGC_APPLICATION_NAME='"\\\"Custom QGroundControl\\\""'
1
On

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.