Is there a command to check the version of the installed Qt on Mac OS X. My Mac OS X version is 10.6.7.
Eidt: Update the status 10/28/2011
When running /usr/sbin/system_profiler SPFrameworksDataType, the version of the QTkit is 7.6.6.
The value of the macro QT_VERSION_STR in qglobal.h is "4.7.2".
I'm confused why the two version strings are different? Obviously, the version string "4.7.2" is what I want.
Thanks, Jeffrey
Qt Creator automatically detects the Qt versions that are registered by your system or by installers. To view detailed information for each Qt version, select it in the list and select Details in the Qt version for section. To add Qt versions, select Tools > Options > Build & Run > Qt Versions.
By default, Qt is configured for installation in the /usr/local/Trolltech/Qt-4.8.
Instead, macOS uses its own native windowing system that is accessible through the Cocoa API. To download and install Qt for macOS, follow the instructions on the Getting Started with Qt page. To build Qt from source, see Qt for macOS - Building from Source.
If you installed with brew, just do...
brew info qt
or
brew info qt5
Update:
Doing it this way will cut out all the extra stuff and only show versions.
brew list --versions qt
or
brew list --versions qt5
Here's a nice cheatsheet for brew, btw: http://ricostacruz.com/cheatsheets/homebrew.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With