Instead of using the one from QApplication, use the one from the window.
kf6-only as Qt 5 only has API taking a QWindow.
kf6
QWindow
With 175% scaling, before:
After: