Results 1 to 3 of 3

Thread: Version Info in EXE, Access project file from resource.rc file?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Version Info in EXE, Access project file from resource.rc file?

    Hmm, what if you do it the other way around.

    The rc file can obviously include headers, so you could have a simple header that just contains
    Qt Code:
    1. #define VERSION 11.0.5
    To copy to clipboard, switch view to plain text mode 
    And then use cat() and section() in the .pro to extract the version string into a qmake variable.

    Cheers,
    _

  2. The following 2 users say thank you to anda_skoa for this useful post:

    d_stranz (19th March 2016), HappyCoder (18th March 2016)

  3. #2
    Join Date
    Jul 2015
    Posts
    87
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Version Info in EXE, Access project file from resource.rc file?

    Quote Originally Posted by anda_skoa View Post
    And then use cat() and section() in the .pro to extract the version string into a qmake variable.
    Thx, works great!

Similar Threads

  1. How to show version info by right clicking a Qt executable file in Linux?
    By TheIndependentAquarius in forum Installation and Deployment
    Replies: 2
    Last Post: 18th July 2014, 07:44
  2. Qt version checking at the project-file
    By roxton in forum Qt Programming
    Replies: 5
    Last Post: 27th June 2013, 23:43
  3. Replies: 9
    Last Post: 9th April 2009, 06:49
  4. File version info
    By johncharlesb in forum Qt Programming
    Replies: 1
    Last Post: 19th October 2007, 02:59

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.