Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to read Windows Application File Properties Details

How to read Windows Application File Properties Details

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 2.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    astodolski
    wrote on last edited by
    #1

    Is there a way to read Windows file properties? For instance, When you right click on an application and select Properties->Details. I would like to read in the fields such as:

    File Version
    File Description

    I can write those values using the Windows resource compiler, but reading back once the application is built is not known.

    Thanks in advance

    1 Reply Last reply
    0
    • Chris KawaC Offline
      Chris KawaC Offline
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Do you mean your running app reading it's own properties or other external files?

      Either way this is OS specific stuff and not really Qt related.
      Take a look at "GetFileVersionInfo":http://msdn.microsoft.com/en-us/library/windows/desktop/ms647003.aspx and "VerQueryValue":http://msdn.microsoft.com/en-us/library/windows/desktop/ms647464.aspx apis. There are good examples in the description and comments.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        astodolski
        wrote on last edited by
        #3

        This is a question as to how to do something on Qt that is running on a Windows platform - I though this is the place to ask such questions, but we all have our opinions.

        I am aware of the apis on the Win SDK. I was hoping there was a Qt solution that may have an alternate solution.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved