Results 1 to 3 of 3

Thread: is it possible to use envionment variables in pro file?

  1. #1
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Question is it possible to use envionment variables in pro file?

    Hi ,All

    Is it possible to use envionment variables in pro file?

    For example:

    test.pro
    ################
    exists($HOME/test.ini) #$HOME or $$HOME doesn't work
    {
    ...
    }

    Thanks advance for your help!

  2. #2
    Join Date
    Jan 2006
    Location
    Belgium
    Posts
    1,938
    Thanked 268 Times in 268 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Wiki edits
    20

    Default Re: is it possible to use envionment variables in pro file?

    Try:

    Qt Code:
    1. $$(HOME)
    To copy to clipboard, switch view to plain text mode 

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

    hashb (15th December 2010)

  4. #3
    Join Date
    Jun 2009
    Posts
    74
    Thanks
    23
    Thanked 2 Times in 2 Posts

    Default Re: is it possible to use envionment variables in pro file?

    Great! it works!

Similar Threads

  1. How to actually connect variables to the GUI ?
    By Computer Hater in forum Newbie
    Replies: 6
    Last Post: 14th November 2010, 23:49
  2. Adding user variables to .ui file
    By seweazel in forum Qwt
    Replies: 5
    Last Post: 10th September 2010, 08:27
  3. Save/Load variables to FIle
    By Jordan in forum Qt Programming
    Replies: 2
    Last Post: 26th May 2010, 11:35
  4. Replies: 3
    Last Post: 6th February 2008, 12:53
  5. Global variables
    By Mariane in forum Newbie
    Replies: 14
    Last Post: 10th October 2006, 17:23

Tags for this Thread

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.