Results 1 to 2 of 2

Thread: version info

  1. #1
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    8
    Thanked 7 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default version info

    How to gat access to the VERSION variable defined in .pro file from the C++ source? For example, I set DEFINE=1.0.1. How I can get this value from my .cpp?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: version info

    qmake doesn't pass such variables to the compiler, so you have to do that using DEFINES variable.

    See this thread: http://www.qtcentre.org/forum/f-qt-p...code-8283.html

  3. The following user says thank you to jacek for this useful post:

    roxton (1st May 2008)

Similar Threads

  1. Qt designer plugin errors on OSX Leopard
    By mpotocnik in forum Qt Tools
    Replies: 10
    Last Post: 21st January 2008, 09:45
  2. Replies: 2
    Last Post: 5th November 2007, 21:47
  3. Distributing QT application for Mac OS
    By mb0 in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2007, 18:59
  4. Replies: 15
    Last Post: 21st April 2007, 17:46

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.