Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Addition/Increment in .pro file
QtWS25 Last Chance

Addition/Increment in .pro file

Scheduled Pinned Locked Moved Qt Creator and other tools
2 Posts 2 Posters 854 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Max13
    wrote on last edited by
    #1

    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.

    We all have started by asking questions. Then after some time, we can begin answering them.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      andrep
      wrote on last edited by
      #2

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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved