Mac OS Programming Qt

Crash in QTreeWidget / QTreeView index mapping on Mac OSX 10.10 part III

So, one more attempt. Previous articles (part1, part2) mentioned possible solutions to fix crash insinde the QTreeWidget and QAccessibleTableCell. Unfortunately, deselecting current item still doesn’t fix all issues. The problem with deselection is that it’s not handled correctly via QAccessibleTableCell: If current index isn’t valid, QAccessible doesn’t correctly update currect QAccessibleTableCell object which caused all this evil …

Continue Reading
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 Programming Qt

Qt app crash on mac when executed with parameters

Our reporting tool occasional crashed on MacOs when was executed with several command line params. Command looked like this: When inspecting exception report, we found following stack trace: After some google-searching I found out that the problem is in core of our application. When subclassing Qt QApplication, it’s necessary to pass argc with reference, not …

Continue Reading
Linux Mac OS

Using ssh as proxy/tunnel between Mac OS and Linux

How to connect to remote computer with private key by using ssh: Note: If your private key was created for Windows, it will probably not work on linux/mac. It’s necessary to convert it by using puttygen (on mac or windows). You need to open it by puttygen and choose “Save as openssh” from menu. Additional …

Continue Reading
Mac OS

Useful Mac OS tools for developer

System Tools Little snitch ( €29 – discount 20% DT-AFE7-8F6B) – Firewall Cyber duck – FTP, SFTP, WebDav, S3 client Disk Inventory X – disk usage utility AppTrap – advanced application uninstallation Onyx – maintenance tool and optimizer Get Backup (free/paid pro) – backup tool iTerm2 – terminal replacement External articles: http://lifehacker.com/5252183/clean-up-and-revive-your-bloated-sluggish-mac Programming SmartSVN (free for personal use,  $69/license) – svn gui tool SmartGit/Hg  …

Continue Reading
Linux Mac OS

Customize OSX terminal prompt

How to customize default terminal prompt which looks like this? simply define PS1 variable with required format. To display only full path, use following: \d – date \t – time \h – hostname \# – command number \u – username \W – current directory (e.g.: Desktop) \w – current directory path (e.g.: /Users/Admin/Desktop) External links: http://stackoverflow.com/questions/14416274/how-to-suppress-or-customize-mac-terminal-shell-prompt

Continue Reading