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 (MyProject.pro):
    @NUM = 42
    message($$NUM)@

    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)
    message($$NUM)
    @


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.