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
Forum Updated to NodeBB v4.3 + New Features

Identifying Qt Version at runtime

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 1.5k 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 25 Aug 2021, 21:30 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?

    J 1 Reply Last reply 25 Aug 2021, 21:38
    0
    • J John Howe
      25 Aug 2021, 21:30

      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?

      J Offline
      J Offline
      jeremy_k
      wrote on 25 Aug 2021, 21:38 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

      1/2

      25 Aug 2021, 21:30

      • Login

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