Mac OS X binaries to install PySide are available from the Qt Project. For PyQt, use the binaries provided by the PyQtX project. Choose the complete version for your Python version, which supplies Qt as well as PyQt, unless you're certain that you have Qt installed in the correct version; then use the minimal installers. By default, Qt is configured for installation in the /usr/local/Trolltech/Qt-4.7.0 directory, but this can be changed by using the -prefix option. Cd /tmp/qt-everywhere-opensource-src-4.7.0./configure.
Students in the CS106B/courses use Qt Creator to write C++ programs. Qt Creator is an integrated development environment (IDE) with tools to edit, build, run, and debug programs.
Installing Qt Creator
Qt Creator is installed on the campus cluster computers. Students may also choose to install Qt Creator on their own computers.
We have prepared installation guides for each operating system, choose the one for your computer. Please follow the instructions carefully and do not skip steps.
- Install Qt Creator on Windows
- Install Qt Creator on Mac OS X
- Install Qt Creator on Linux
The final step of the installation is to build and run a sample project. If you have successfully done this, your installation is good to go! If you run into problems, check our troubleshooting guide.
Re-installing: If you already have Qt Creator on your computer, ensure it is up-to-date. To confirm what version you have, look in the Qt Creator menu for 'About Qt Creator'. For Fall Quarter 2020 the version number must be at least
The version number of your Qt Creator must be equal or newer (greater) than the above version. If the version you have installed is older, delete your existing Qt folder and make a fresh install by following the steps above. If the Qt you already have is sufficiently up-to-date, you only need to install the CS106 specific components.
Creating a new Qt project
Our 📦 sample project is a blank/empty project can be used as a template for creating a new project with the proper CS106 settings.
Using Qt Creator
Here are some guides on using the tools.
- Debugger tutorial from Assignment 0
The QT guides have been written and maintained by legions of wonderful CS106B staff members.
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.
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.
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.
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. 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.
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.
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.
Mac Os Download For Windows
Qt Designer Mac
- Getting Started with Qt and Qt Creator on Linux, ICS blog post, http://www.ics.com/blog/getting-started-qt-and-qt-creator-linux
- Getting Started with Qt and Qt Creator on Windows, ICS blog post, http://www.ics.com/blog/getting-started-qt-and-qt-creator-windows
- Qt for MacOS, Qt documentation web site, http://doc.qt.io/qt-5/osx.html
- Xcode 8, Apple Developer website, http://developer.apple.com/xcode