Results 1 to 5 of 5

Thread: How to add vendor, version, etc. informations to Qt App?

  1. #1
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default How to add vendor, version, etc. informations to Qt App?

    When i click on second mouse button on my executable file i can then click on Properties, go to Details and then i see informations about vendor app description, version number. How can I put this kind of informations in my app?

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

    Default Re: How to add vendor, version, etc. informations to Qt App?

    Probably through the manifest.
    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.


  3. #3
    Join Date
    Sep 2011
    Posts
    86
    Thanks
    4
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Windows

    Default Re: How to add vendor, version, etc. informations to Qt App?

    I read about manifest in general and i wonder is it necessary to create manifest file in order to deploy my app on Win 7/8/Vista when i want it to be installed in Program Files directory? When I use MinGW not VS?

    And as an answer for my first question I found this: http://www.qtcentre.org/threads/3581...light=manifest for those who will be interested
    Last edited by code_err; 29th February 2012 at 14:50.

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

    Default Re: How to add vendor, version, etc. informations to Qt App?

    The manifest is about running the application, not installing it.
    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.


  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: How to add vendor, version, etc. informations to Qt App?

    The program information you see on the Properties tab in Windows comes from the Windows resource file built into the application. You use the VERSIONINFO block and its associated string blocks. Something like coolapp.rc:
    Qt Code:
    1. #include <windows.h>
    2.  
    3. #define VER_FILEVERSION 2,1,3,924
    4. #define VER_FILEVERSION_STR "2.1.3.924"
    5. #define VER_PRODUCTVERSION 2,1,3,924
    6. #define VER_PRODUCTVERSION_STR "2.1.3"
    7.  
    8. #define VER_COMPANYNAME_STR "Cool Company Pty Ltd"
    9. #define VER_FILEDESCRIPTION_STR "Cool Program"
    10. #define VER_INTERNALNAME_STR "Cool Program"
    11. #define VER_LEGALCOPYRIGHT_STR "Copyright 2012 Cool Company Pty Ltd"
    12. #define VER_LEGALTRADEMARKS1_STR ""
    13. #define VER_LEGALTRADEMARKS2_STR ""
    14. #define VER_ORIGINALFILENAME_STR "coolapp.exe"
    15. #define VER_PRODUCTNAME_STR "Cool Program"
    16.  
    17. #ifndef DEBUG
    18. #define VER_DEBUG 0
    19. #else
    20. #define VER_DEBUG VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE|VS_FF_DEBUG
    21. #endif
    22.  
    23.  
    24. ID_ICON ICON DISCARDABLE "coolapp.ico"
    25. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "coolapp.exe.manifest"
    26.  
    27. VS_VERSION_INFO VERSIONINFO
    28. FILEVERSION VER_FILEVERSION
    29. PRODUCTVERSION VER_PRODUCTVERSION
    30. FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
    31.  
    32. FILEFLAGS ( VER_DEBUG )
    33. FILEOS VOS__WINDOWS32
    34. FILETYPE VFT_APP
    35. BEGIN
    36. BLOCK "StringFileInfo"
    37. BEGIN
    38. BLOCK "040904E4"
    39. BEGIN
    40. VALUE "CompanyName", VER_COMPANYNAME_STR
    41. VALUE "FileDescription", VER_FILEDESCRIPTION_STR
    42. VALUE "FileVersion", VER_FILEVERSION_STR
    43. VALUE "InternalName", VER_INTERNALNAME_STR
    44. VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
    45. VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
    46. VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR
    47. VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
    48. VALUE "ProductName", VER_PRODUCTNAME_STR
    49. VALUE "ProductVersion", VER_PRODUCTVERSION_STR
    50. END
    51. END
    52.  
    53. BLOCK "VarFileInfo"
    54. BEGIN
    55. /* The following line should only be modified for localized versions. */
    56. /* It consists of any number of WORD,WORD pairs, with each pair */
    57. /* describing a language,codepage combination supported by the file. */
    58. /* */
    59. /* For example, a file might have values "0x409,1252" indicating that it */
    60. /* supports English language (0x409) in the Windows ANSI codepage (1252). */
    61.  
    62. VALUE "Translation", 0x409, 1252
    63.  
    64. END
    65. END
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Replies: 34
    Last Post: 1st June 2010, 10:59
  2. Vendor and Model Name from USB Devices
    By NoRulez in forum Qt Programming
    Replies: 6
    Last Post: 20th July 2009, 09:01
  3. QSqlRecord...retrieving informations
    By lord_shadow in forum Qt Programming
    Replies: 3
    Last Post: 5th March 2009, 12:54
  4. how to get error or informations from a exe under dos?
    By raphaelf in forum Qt Programming
    Replies: 9
    Last Post: 20th June 2008, 10:17
  5. RTQI : Run-Time Qt Informations ?
    By fullmetalcoder in forum Qt Programming
    Replies: 1
    Last Post: 18th July 2006, 12:01

Tags for this Thread

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.