Reputation: 3197
I'm pretty new to Linux and am maintaining an application that runs on Mint 17.x. The application has a bug that seems to be related to an old version of Qt 5.
How can I find out what version of Qt 5 is on a freshly-created Mint 17.x machine?
Upvotes: 0
Views: 2515
Reputation: 770
I don't have Mint, but what I tried on Debian Jessie is first looking for the qt directory via
ls /usr/share/ | grep qt
I then changed to the directory /usr/share/qt5. From there, I did
grep -r "QtCore 5"
I found a match in /usr/share/qt5/doc/qtcore.qch/
Opening up the file in vim (or whichever editor you prefer), I searched for "QtCore 5" to find the major version. I found several mentions of QtCore 5.3 but none of "QtCore 5.1", "QtCore 5.2", or "QtCore 5.4". To find the minor version, I searched for variants of "project.qtcore.53X" where X is the minor version number. I found "project.qtcore.532" but not any other variant.
Note that for vim searches you will have to use a "\" character to escape the "." regex.
Upvotes: 1
Reputation: 723
If you are using QtCreator:
Tools > Options... > Build & Run > Qt Versions
Upvotes: 1