Is there a way to read the contents of the qmake project file (.pro) built-in
variables, specially the TARGET variable? I'm doing
a bunch of small examples and getting the TARGET (.exe) name to my QWindow
class would help to pass the name to setTitle()
consistently and automatically.
Thanks,
Here’s how I do it:
TARGET = MyProgram
VERSION = 1.0.0.0
DEFINES += \
APP_VERSION=$$VERSION \
APP_NAME=\\\$$TARGET\\\
I then access the TARGET as the constant APP_NAME and VERSION as the constant
APP_VERSION
Karl
On Sep 25, 2014, at 8:04 AM, rap r...@dlc.fi wrote:
Is there a
On 25 sept. 2014, at 15:04, rap r...@dlc.fi wrote:
Is there a way to read the contents of the qmake project file (.pro) built-in
variables, specially the TARGET variable? I'm doing
a bunch of small examples and getting the TARGET (.exe) name to my QWindow
class would help to pass the
Perfect! Thank you Karl!
/Risto
Date: Thu, 25 Sep 2014 08:13:10 -0500
From: Karl Ruetz karl.ru...@ruetzdogz.com
Subject: Re: [Interest] How to read Qmake .pro file built-in variables
To: Interest@qt-project.org
Message-ID: 42d70809-3ede-4cc0-ab25-f1e013f70...@ruetzdogz.com
Content-Type: text