Important: Please read the Qt Code of Conduct -

Addition/Increment in .pro file

  • Hi,

    I see that there are many really useful functions for QMake, but I'm looking for a way to make an addition and I don't see how.

    For instance (
    @NUM = 42

    I can see "42" printed, but what if I want to show 43 programmatically? +1 or ++ aren't recognized.

    Thanks for your help.

  • I am only aware of platform dependent method lilke
    @NUM = 42
    NUM = $$system(expr $$NUM + 1)

Log in to reply