Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check the installed Qt version on Mac OS X

Tags:

macos

qt

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

like image 603
Jeffrey Avatar asked Oct 27 '11 07:10

Jeffrey


People also ask

How do I find my Qt version?

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.

Where is Qt installed Mac?

By default, Qt is configured for installation in the /usr/local/Trolltech/Qt-4.8.

Does Qt run on macOS?

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.


1 Answers

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

like image 52
barry Avatar answered Oct 05 '22 03:10

barry