Results 1 to 3 of 3

Thread: Autoincrement builds counter

  1. #1
    Join Date
    Jan 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Autoincrement builds counter

    I want to implement an autoincrement builds counter. For example, I'm define some constant in one of #include files of my project, like this
    Qt Code:
    1. #define BUILD_NUM 123
    To copy to clipboard, switch view to plain text mode 
    And now I need that BUILD_NUM on each build will increment on 1. How to do that?

    --
    Qt 4.6 for Win32, QtCreator

  2. #2
    Join Date
    Jan 2010
    Posts
    9
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Autoincrement builds counter

    I've found two useful articles on this topic:

    Does anyone know more examples?

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Autoincrement builds counter

    There is also [wiki]Version numbering using QMake[/wiki].
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Size of Static Builds
    By Stobie in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 19th January 2010, 22:24
  2. Counter-intuitive behavior of QThreads signals/slots
    By reddish in forum Qt Programming
    Replies: 3
    Last Post: 9th September 2008, 21:40
  3. Counter widget
    By eu.x in forum Newbie
    Replies: 7
    Last Post: 27th February 2007, 21:30
  4. QTableView without the first counter column?
    By pmaktieh.sirhc in forum Qt Programming
    Replies: 2
    Last Post: 4th January 2007, 23:03
  5. silly array element counter..
    By ct in forum General Programming
    Replies: 4
    Last Post: 3rd March 2006, 16:50

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.