Calling this function only has effect under X windows. If raw mode is enabled, Qt will search for an X font with a complete font name matching the family name, ignoring all other values set for the QFont. Sets strike out on or off. The style hint is used by the font matching algorithm when a selected font family cannot be found and is used to find an appropriate default family. The style hint has a default value of AnyStyle which leaves the task of finding a good default family to the font matching algorithm.
Sets underline on or off.
Use QFontInfo to check the actual weight. Use QFontInfo to find the strike out value of the window system font actually used. The lookup is case insensitive. If there is no substitution for familyName, then familyName is returned. Use QFontInfo to find the underline value of the window system font actually used for drawing.