romangg added a comment.
Could we use a wrapper for QApplication being called by
QApplication app = KWorkSpace::createPlattformAwareQApplication(argc, argv);
and that sets and unsets the env variable in the wrapper call? With above
code there might be a copy involved though.
REPOSITORY
R120 Plasma Workspace
BRANCH
unset-qt-qpa-platform
REVISION DETAIL
https://phabricator.kde.org/D11447
To: graesslin, #plasma, davidedmundson, romangg
Cc: romangg, fvogt, plasma-devel, ZrenBot, lesliezhai, ali-mohamed,
jensreuterberg, abetts, sebas, apol, mart