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 the version details programatically.
QtWS25 Last Chance

How to read the version details programatically.

Scheduled Pinned Locked Moved General and Desktop
4 Posts 4 Posters 3.4k Views
  • 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.
  • I Offline
    I Offline
    Indrajeet
    wrote on last edited by
    #1

    Hi All

    I have created version details from Version.rc file.
    Now I want to read these details in my code so as to display it in About message box.

    1 Reply Last reply
    0
    • Z Offline
      Z Offline
      zither
      wrote on last edited by
      #2

      which type of files you used to store for version info in resource file?

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

        Why don't you simply use Qt's system for it: QApplication has several methods to set version details, and even qmake supports the needed variables.

        1 Reply Last reply
        0
        • C Offline
          C Offline
          cincirin
          wrote on last edited by
          #4

          I would follow Andre's advice.
          But if you really need to put version information in your application or DLL, you should use "VerQueryValue":http://msdn.microsoft.com/en-us/library/windows/desktop/ms647464(v=vs.85).aspx Be aware of

          bq. you must first call the GetFileVersionInfoSize function, and then the GetFileVersionInfo function.

          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