Instead of using the one from QApplication, use the one from the window, which can be different under Wayland.
Fixes rendering images with fractional scaling under Wayland:
Before (at 175% scale):
After: