The attached zip file figurato.zip contains an OpenType font called Figurato (available here) that uses the OpenType kern feature to stack numerals on top of each other. As you type e.g. 123 in this font, the 2 should be positioned below the 1, and the 3 should be positioned below the 2.
To see this for yourself, install the font and then try this in TextEdit or another native Cocoa/CoreText application: switch to Figurato and type 123: the digits are stacked with 1 on top, 2 below 1, and 3 below 2.
Now repeat this in a QTextEdit control or in the Rich Text Qt example app: the digits are stacked in the reverse order, with 1 on the bottom, 2 above 1, and 3 above 2.
This problem affects the macOS version of Qt only: the Windows version interprets Y value in glyph positioning in the kern feature correctly.