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. Identifying Qt Version at runtime
Qt 6.11 is out! See what's new in the release blog

Identifying Qt Version at runtime

Scheduled Pinned Locked Moved Solved General and Desktop
2 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.
  • J Offline
    J Offline
    John Howe
    wrote on last edited by
    #1

    Hello all!

    I'm trouble shooting an environment problem. Application A runs Qt version A, App B runs version B, etc. I'm now running into an issue where I have multiple versions of Qt installed, and Application C does not appear to call Qt version C (not 100% sure about that).

    My question: Is there an easy way to make my application identify which version of Qt it's using at run time?

    jeremy_kJ 1 Reply Last reply
    0
    • J John Howe

      Hello all!

      I'm trouble shooting an environment problem. Application A runs Qt version A, App B runs version B, etc. I'm now running into an issue where I have multiple versions of Qt installed, and Application C does not appear to call Qt version C (not 100% sure about that).

      My question: Is there an easy way to make my application identify which version of Qt it's using at run time?

      jeremy_kJ Offline
      jeremy_kJ Offline
      jeremy_k
      wrote on last edited by jeremy_k
      #2

      qVersion() returns a const char * C string, for example "5.15.2".

      QLibraryInfo::version() breaks it out into components.

      Asking a question about code? http://eel.is/iso-c++/testcase/

      1 Reply Last reply
      2

      • Login

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