Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8698253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T01:41:27+00:00 2026-06-13T01:41:27+00:00

Qt Creator 2.5.2 on Win 7: I am using this approach ( Qt. Automatically

  • 0

Qt Creator 2.5.2 on Win 7: I am using this approach ( Qt. Automatically adding version for application ) to add a VERSION number for my source code in Qt Creator.

However, since my Mercurial is installed in C:\TortoiseHg\hg , I have to specify

VERSION = $$system(C:\TortoiseHg\hg parents --template '{latesttag}+{latesttagdistance}')

This full path is not very nice, since others might have installed in different places. The location is correctly set under Qt Creator Tools -> Options -> Version Control -> Mercurial.

Is there a chance (variable) reflecting this setting, or another workaround? Guess in order to use VERSION = $$system(hg parents --template '{latesttag}+{latesttagdistance}') I have to globally add C:\TortoiseHg\ to PATH – which I’d like to avoid for some reasons.

So what is the best way getting rid of the absolute path?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T01:41:28+00:00Added an answer on June 13, 2026 at 1:41 am

    .pro file is not only a QtCreator project, but qmake project file – qmake may not know what you specify in QtCreator settings. If you don’t want to add path to hg.exe to PATH, you may want to create separate environment variable an try to use it in $$system.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i'm using QT Creator 1.3.1 and trying to compile, but get this error... please
I am using Qt Creator. When I compile an application, are the .ui files
I'm using java studio creator to build my application. I used the ajax component,
I'm using Qt creator 2.4. I need to use a string say hiworld in
Using Qt Creator 2.4.1 (Windows/mingw), I'm trying to compile my project dynamically linking with
I'm using Qt Creator 4.5 with GCC 4.3 and I'm having the following problem
I am using DynamicPDF creator, Visual Studio 2010, and IIS 7. On my local
I'm using Qt Creator 2.4.1 under Xubuntu 11.10. I've installed libgdcm2-dev (2.0.17) in repositories.
I'm using Qt Creator to create a GUI for a fairly memory intensive C++
Using Qt Creator, I am creating a class with custom slots in Qt: class

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.