Return to site

Qt For Mac Os

broken image


Two earlier blog posts (1) (2) covered how to set up Qt and Qt Creator on Windows and Linux systems. Let's look at installation on the remaining major desktop platform, macOS.

  • For Qt 5.7.1 you can navigate to officialreleases / qt 5.7 / 5.7.1 and then download qt-opensource-mac-x64-clang-5.7.1.dmg. It is a reasonably large (1.2 GB) download. Once it has downloaded, open the dmg file: From the Qt Installer, follow the wizard screens in the same fashion as on Windows and Linux. Here were the screens I stepped through.
  • To configure the Qt library for your machine type, run the./configure script in the package directory. By default, Qt is configured for installation in the /usr/local/Trolltech/Qt-4.8.5 directory, but this can be changed by using the -prefix option. Cd /tmp/qt-everywhere-opensource-src-4.8.5./configure.

Thanks to the unified Qt installer, the process is very similar to that on Windows and Linux, so we'll just cover some of the differences and highlights of the Mac install.

Catalyst allows iPad developers to easily port their iOS apps to the Mac, ultimately enabling universal purchases between the two platforms.While Catalyst has already been used to bring third-party iPad apps, like Twitter, to the Mac, it's not the same as natively running an iPhone or iPad app on an ARM Mac. To do app for mac ipad and iphone.

Hi Also, an absolute minimum is to state what Qt version you are building, with what Xcode version on which OS version.:). Qt is a comprehensive application and UI framework for developing Mac applications that can also be deployed across many other desktop and embedded operating systems without rewriting the source code. Use the code from one single code-base and rebuild for all supported Windows versions and other platforms. MacOS (previously known as OS X or Mac OS X) is Apple's operating system for the Mac line of computers. It's a UNIX platform, based on the Darwin kernel, and behaves largely similar to other UNIX-like platforms. To download and install Qt for macOS, follow the instructions on the Getting Started with Qt page. Supported Versions.

Assumptions and Prerequisites

For this example we'll install Qt 5.7.1, which is supported on macOS version 10.8 and later.

The C++ compiler used by Qt on macOS is the Clang compiler, provided as part of the Xcode development tool. You will need to install Xcode from the Apple App Store. It is a free download, but you will need to have or create an Apple ID.

You can also use Qt and Qt Creator on macOS to develop for iOS (i.e. for iPhone, iPod Touch, and iPad devices), or for Android (or both). These use different downloads of Qt and have more prerequisites and won't be covered here.

Installation Steps

Download the Qt installer from http://download.qt.io. For Qt 5.7.1 you can navigate to official_releases / qt 5.7 / 5.7.1 and then download qt-opensource-mac-x64-clang-5.7.1.dmg. Download psiphon for mac. It is a reasonably large (1.2 GB) download.

Once it has downloaded, open the dmg file:


From the Qt Installer, follow the wizard screens in the same fashion as on Windows and Linux. Here were the screens I stepped through:


Once done, you can launch Qt Creator:

You should check that it correctly set up at an auto-detected kit with the compiler, Qt version, and debugger:


This is a good time to create some sample projects to test your installation. Use the New Project Wizard and confirm that you can create the project, build it and run the application. Testing both widget and QML-based projects is recommended.

Download mojave not from app store. Jul 31, 2020 Download macOS Mojave For the strongest security and latest features, find out whether you can upgrade to macOS Catalina, the latest version of the Mac operating system. If you still need macOS Mojave, use this App Store link: Get macOS Mojave.


You are now ready for Qt software development on macOS. If you want to update, add or remove any components, you can run the maintenance tool, which will be found under the Qt install directory as MaintenanceTool.

Summary

Qt macos brew

It's easy to get Qt up and running using the installer. I'm not a regular macOS user so on the occasions where I need to build a Qt application for the Mac, I appreciate that I can use the familiar Qt Creator IDE to do most of my work rather than having to learn another IDE.

Qt Mac Os Catalina

References

Mac Install Qt

  1. Getting Started with Qt and Qt Creator on Linux, ICS blog post, http://www.ics.com/blog/getting-started-qt-and-qt-creator-linux
  2. Getting Started with Qt and Qt Creator on Windows, ICS blog post, http://www.ics.com/blog/getting-started-qt-and-qt-creator-windows
  3. Qt for MacOS, Qt documentation web site, http://doc.qt.io/qt-5/osx.html
  4. Xcode 8, Apple Developer website, http://developer.apple.com/xcode




broken image