Questions tagged [qfont]
32 questions
0
votes
1 answer
Returning fontsize and font family from QFontDialog PyQt
Is there a way to return the font size and font name from QFontDialog? I'm new on python and all the examples I have seen do not return the font name and/or font size.
What I have now it's something like this:
def font_picker(self, button, line):
…

Jonas Kublitski
- 119
- 1
- 11
-1
votes
1 answer
QFontInfo::pixelSize() changes between Qt 4 and Qt 5
This code:
QFont convertPointToPixelSize( const QFont& f )
{
QFont ret( f );
QFontInfo fi( ret );
ret.setPixelSize( fi.pixelSize() );
return ret;
}
qDebug() << "getFont()=" << getFont();
qDebug() << "convertPointToPixelSize(…

Andy Brice
- 2,297
- 1
- 21
- 28