QDesktopServices is used to open the file. I suspect Qt doesn’t understand the XDG preference mechanism somehow.
QDesktopServices