This sets QT_QPA_PLATFORM, so has to happen before the QApplication is created. BUG: 428339
mentioned in commit ca5a4e14