How to find Version of Qt?

后端 未结 7 1689
無奈伤痛
無奈伤痛 2020-12-29 01:24

How do I know which version of Qt I am using? When I open Qt Creator it shows \"Welcome to Qt Creator 2.3\". In the build setting, however, it shows Qt Version 4.7.1.

7条回答
  •  不知归路
    2020-12-29 02:05

    You can use qmake -query QT_VERSION:

    ➜  ~ qmake -query QT_VERSION
    4.8.7
    
    ➜  ~ Qt/5.15.0/gcc_64/bin/qmake -query QT_VERSION
    5.15.0
    
    ➜  ~ qt-6.0.0/bin/qmake -query QT_VERSION
    6.0.0
    

提交回复
热议问题