Important: Please read the Qt Code of Conduct -

Finding out version of Qt source?

  • Probably a simple stupid question but I haven't found an answer:

    when building Qt from source, i want my target directory (-prefix) to match the Qt version... so I'd like to know how I figure the version so I can use it to parameter my prefix folder name.

    Any ideas?

    Thanks for help.

  • the version is found in


    there is a define:

    #define QT_VERSION_STR "5.0.1"

    in that file you can have a look.

Log in to reply