I'm on the mac version of Qt ...
When I do this:
cout << "font: " << font.rawName().toAscii().data() << endl;
cout << "pointsize: " << font.pointSize() << endl;
QFont font = QFontDialog::getFont( &ok, QFont( "Helvetica [Cronyx]", 10 ), this );
cout << "font: " << font.rawName().toAscii().data() << endl;
cout << "pointsize: " << font.pointSize() << endl;
To copy to clipboard, switch view to plain text mode
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.
Bookmarks