PDA

View Full Version : QFontDialog always returns 13x Lucida Grande



mhoover
4th February 2010, 22:58
I'm on the mac version of Qt ...

When I do this:


QFont font = QFontDialog::getFont( &ok, QFont( "Helvetica [Cronyx]", 10 ), this );
cout << "font: " << font.rawName().toAscii().data() << endl;
cout << "pointsize: " << font.pointSize() << endl;

I always get:


font: Lucida Grande
pointsize: 13

Even though I don't set it to Lucida Grande 13 every time. I have changed the font and the size.

mhoover
6th February 2010, 01:00
Ah ha ...

This is a known bug that was fixed in Qt 4.6.1.

http://bugreports.qt.nokia.com/secure/IssueNavigator.jspa?