Add version information to your executables and libraries in Qt

Executable files have an embedded version information which can be found by checking their properties. It includes version number, comments, company info etc. As developer you sometimes need to leave a scratch on the EXE files you are providing to your customers in order to track what you have and what your customers have.



Qt allows easy embedding of version number in your executable files by including the following line in your PRO file.

VERSION = 1.2.3.4
EXE version

Embedding company info and any other version info besides version number in your EXE requires a little bit more effort. You can Google for it but in general it it done by putting all version information inside a text file and including that file as a resource in your EXE. This is actually the way it was done in the old days 🙂



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.