View Full Version : How to fix Qt 4 fonts on Mac OS X 10.9

23rd October 2013, 13:44
Mac OS X 10.9 was released yesterday. When I ran my Qt 4 app on 10.9, the text alignment in the controls was broken. Here is the fix:

#ifdef Q_OS_MACX
if ( QSysInfo::MacintoshVersion > QSysInfo::MV_10_8 )
// fix Mac OS X 10.9 (mavericks) font issue
// https://bugreports.qt-project.org/browse/QTBUG-32789
QFont::insertSubstitution(".Lucida Grande UI", "Lucida Grande");

QApplication a( argc, argv );

More details at:

I hope that helps someone.