Mac OS Programming Qt

Qt5 application hangs-up when QNetworkAccessManager and QEventLoop is used on Mac OS

To be more specific, problem occurs only in very specific circumstances. It’s in situation, when application is compiled as console-app and it’s compiled on Mac OS X version older than 10.9: and when you’re using QEventLoop::exec in mode processing all events except user events (QEventLoop::ExcludeUserInputEvents): In this situation, application hangs-up. When the application is compiled …

Continue Reading
Mac OS

How to change plist value on MacOS 10.9+

When .plist file is manually updated on MacOS 10.9+, changes are not directly applied to plist cache. This means that  these changes aren’t visible to executed application (even if you run it after plist change). It’s necessary to tell plist change to reload this settings. There are two ways how to do it. First one …

Continue Reading
Mac OS Qt

How to sign your Qt Mac OS X App for Gatekeeper

Starting from Mac os 10.8 apple applications requires certificate. Without that certificate (or without additional system tweaks described here on our product support page: http://support.orm-designer.com/5/macos-mountain-lion-10-8-unidentified-developer ) user will se following message: Solution To solve this error message it’s necessary to do following steps: Register in Apple developer program and pay $99 per year Download and install developer certificate …

Continue Reading
Qt

Problem with Qt application on MacOS Retina display

Standard Qt application on retina display looks ugly. Fuzzy fonts and images. This is how ORM Designer originaly looks on Retina: Improve font autoscaling First step how to improve Qt application on retina is by adding following definise to Info.plist If you’re updating existing application, it’s necessary to copy application to different location after Info.plist …

Continue Reading
Mac OS Qt

How to create nice MacOS DMG installer

In this article I will show how to create DMG installer in reusable way. The most of things and ideas presented here are ideas from several articles mentioned on the end of this article. 1) As first step we need to create our DMG template with link to Applications. 2) Next we have to modify …

Continue Reading
Mac OS Qt

How to deploy Qt application on MacOS – part II

In first part of this article I introduced a manual way how to deploy MacOS application. Because doing all these stuff manually was a lot of hand work, Qt introduced small tool called macdeployqt. This utility looks very good, but also have some drawbacks. As first I will show you how utility works: That’s all …

Continue Reading
Mac OS Qt

How to deploy Qt application on MacOS – part I

As I wrote yesterday, I found the way how to proceed deployment on the Linux system. Today I have to manage it the same on the MacOS systems. Note: the simplest way is introduced in the second part of this article. The first usefull command for tracking dependencies between your application and other shared libraries …

Continue Reading