在Linux环境下我们可以通过以下的方法来获取Qt的版本号
strings libQt5Core.so.5 | grep "5\."
通过此命令即可获qt的版本号和编译位置
Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.4.0 20160609)
This is the QtCore library version Qt 5.14.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.4.0 20160609)