Results 1 to 2 of 2

Thread: setWindowTitle and last compile date/time

  1. #1
    Join Date
    Jan 2006
    Posts
    73
    Thanks
    16
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default setWindowTitle and last compile date/time

    Hello,

    I would like to have the title of the QMainWindow windwos set to the compile date/time. The function is setWindowTitle but how do I get the date/time... Any idea on how I could achieve that?
    Many thanks in advance

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: setWindowTitle and last compile date/time

    Use __DATE__ and __TIME__ macros.

  3. The following user says thank you to jacek for this useful post:

    jcr (9th April 2006)

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
  •  
Qt is a trademark of The Qt Company.