[Qt-interest] qmake - how to work with # char ?
Constantin Makshin
cmakshin at gmail.com
Sat Feb 20 16:58:35 CET 2010
http://qt.nokia.com/doc/4.6/qmake-variable-reference.html#literal-hash
On Sat, 20 Feb 2010 18:45:48 +0300, Mario Signorino
<mario.signorino at gmail.com> wrote:
> Hi all.
>
> I need to write a .h file from my .pro.
> I've successfully write this version.h
>
> define VERSION "Rev: 245 - sab feb 20 16:29:13 2010"
>
> with a system( $$VERSIONNAME )
> Now... I need to add the # char at the beginning of VERSIONNAME...
> How can I do?
>
> VERSIONNAME += #
> VERSIONNAME += "#"
> VERSIONNAME += '#'
> VERSIONNAME += '\#'
> VERSIONNAME += '\\#'
>
> these does not work...
> Tnx all!
--
Constantin Makshin
More information about the Qt-interest-old
mailing list