Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
How to find out which CSS generic font-family a QFont belongs to?
stephenju last edited by
Given a QFont object, how can I find out if it's a serif, sans-serif, or monospace font?
QFont::styleHint() only returns the hint set specifically to the font. It doesn't work with font selected with the font panel for example.
Phil Weinstein last edited by
Stephen, did you ever find a way to do this?
That's the main deficiency of basic QFont / CSS Font specification encoding/decoding functions I devised and shared. See this thread: QFont support for CSS Font spec encoding? ... http://qt-project.org/forums/viewthread/47421/