The documentation for QFont.toString
says that it returns "a comma-separated list of the attributes", but it doesn't specify what "the" attributes are or what order they come in. (Edit: the documentation has been updated so it now explicitly lists the attributes and their order.) I found an old question whose answer says that the attributes are:
font family, pointSizeF, pixelSize,
QFont::StyleHint
,QFont::Weight
,QFont::Style
, underline, strikeOut, fixedPitch, rawMode
But I can't find any authoritative source for this information (and also that answer is more than 10 years old and is about Qt4).
Is there any explicit documentation of the format of QFont.toString()
, including which attributes it represents and what order they come in? Is it reasonable to assume that saving such a string and later using it with QFont.fromString()
on a different version of Qt will work?