Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    How to read the version details programatically.

    General and Desktop
    4
    4
    3174
    Loading More Posts
    • 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
      Indrajeet last edited by

      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 Reply Quote 0
      • Z
        zither last edited by

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

        1 Reply Last reply Reply Quote 0
        • A
          andre last edited by

          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 Reply Quote 0
          • C
            cincirin last edited by

            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 Reply Quote 0
            • First post
              Last post