O'Reilly logo

Qt 5 Projects by Marco Piccolino

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Deploying the app to macOS

Deploying to macOS is typically only possible from a macOS host machine. Qt Creator takes care of most hassles for you, including packaging the needed Qt libraries into the target application bundle and compiling the executable from an Xcode project or Unix makefiles.

The application bundle is the default output setting for QMake and Qt Creator. If you want to obtain a target executable only, you just need to add the following line to your .pro file (for the Qt Quick UI app, this is gui.pro):

CONFIG   -= app_bundle

As you might remember, this instruction was generated for us by Qt Creator for the use case tests .pro files.

If you create an app bundle, you can easily specify a custom icon file for it. You just need ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required