Results 1 to 2 of 2

Thread: Detail Information

  1. #1
    Join Date
    Feb 2006
    Location
    Jarrell, Texas, USA
    Posts
    70
    Thanks
    7
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Detail Information

    Is there a way in QT to include the information in the Details tab of the Application Properties dialog in Windows? For example:

    File description
    File version
    Product name
    Product version
    Copyright

    QT SDK 2010.05
    OS: Windows 7

    Thanks,
    Karl

  2. #2
    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: Detail Information

    That information is stored in the Windows resource file and is Windows-specific. You can specify that a Windows resource file is included in your build with the QMake RC_FILE variable:
    Qt Code:
    1. RC_FILE = example.rc
    To copy to clipboard, switch view to plain text mode 
    an example RC file (also includes a program manifest and icon):
    Qt Code:
    1. #include <windows.h>
    2. #include "version.h"
    3.  
    4. #define VER_COMPANYNAME_STR "Example Pty Ltd\0"
    5. #define VER_FILEDESCRIPTION_STR "Example Program\0"
    6. #define VER_INTERNALNAME_STR "Example\0"
    7. #define VER_LEGALCOPYRIGHT_STR "Copyright 2010 Example Pty Ltd\0"
    8. // #define VER_LEGALTRADEMARKS1_STR "\0"
    9. // #define VER_LEGALTRADEMARKS2_STR "\0"
    10. #define VER_ORIGINALFILENAME_STR "example.exe"
    11. #define VER_PRODUCTNAME_STR "Example Application"
    12.  
    13. #ifndef DEBUG
    14. #define VER_DEBUG 0
    15. #else
    16. #define VER_DEBUG VS_FF_DEBUG
    17. #endif
    18.  
    19.  
    20. ID_ICON ICON DISCARDABLE "example.ico"
    21. CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "example.exe.manifest"
    22.  
    23. VS_VERSION_INFO VERSIONINFO
    24. FILEVERSION VER_FILEVERSION
    25. PRODUCTVERSION VER_PRODUCTVERSION
    26. FILEFLAGSMASK VS_FFI_FILEFLAGSMASK
    27.  
    28. FILEFLAGS ( VS_FF_PRIVATEBUILD|VS_FF_PRERELEASE|VER_DEBUG )
    29. FILEOS VOS__WINDOWS32
    30. FILETYPE VFT_DLL
    31. FILESUBTYPE VFT2_UNKNOWN
    32. BEGIN
    33. BLOCK "StringFileInfo"
    34. BEGIN
    35. BLOCK "040904E4"
    36. BEGIN
    37. VALUE "CompanyName", VER_COMPANYNAME_STR
    38. VALUE "FileDescription", VER_FILEDESCRIPTION_STR
    39. VALUE "FileVersion", VER_FILEVERSION_STR
    40. VALUE "InternalName", VER_INTERNALNAME_STR
    41. VALUE "LegalCopyright", VER_LEGALCOPYRIGHT_STR
    42. // VALUE "LegalTrademarks1", VER_LEGALTRADEMARKS1_STR
    43. // VALUE "LegalTrademarks2", VER_LEGALTRADEMARKS2_STR
    44. VALUE "OriginalFilename", VER_ORIGINALFILENAME_STR
    45. VALUE "ProductName", VER_PRODUCTNAME_STR
    46. VALUE "ProductVersion", VER_PRODUCTVERSION_STR
    47. END
    48. END
    49.  
    50. BLOCK "VarFileInfo"
    51. BEGIN
    52. /* The following line should only be modified for localized versions. */
    53. /* It consists of any number of WORD,WORD pairs, with each pair */
    54. /* describing a language,codepage combination supported by the file. */
    55. /* */
    56. /* For example, a file might have values "0x409,1252" indicating that it */
    57. /* supports English language (0x409) in the Windows ANSI codepage (1252). */
    58.  
    59. VALUE "Translation", 0x409, 1252
    60.  
    61. END
    62. END
    To copy to clipboard, switch view to plain text mode 
    You will have to look to Microsoft documentation for the meaning of this.

Similar Threads

  1. Master/detail presentation
    By cia.michele in forum Qt Programming
    Replies: 8
    Last Post: 18th August 2010, 13:42
  2. Replies: 1
    Last Post: 3rd August 2010, 02:41
  3. QT app information
    By CHeader in forum Qt Programming
    Replies: 5
    Last Post: 4th April 2008, 11:07
  4. Database Master-Detail Entry Form
    By Phan Sin Tian in forum Newbie
    Replies: 4
    Last Post: 3rd February 2008, 14:31
  5. Replies: 6
    Last Post: 27th February 2006, 12:47

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.