How to set QT_QPA_PLATFORM for test
02:42 03 Feb 2022

I have some Qt tests that pop up a window when run. Therefore I want to disable their rendering. Can I set in CMake environment variable QT_QPA_PLATFORM to offscreeen only for the test target?

cmake qttest