0

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

Lumar
  • 1

1 Answers1

0

I use it for my tests and that's the way to go:

QT_QPA_PLATFORM=offscreen executable

This is POSIX-compatible, so thiw will also work on Windows.

Michał Leon
  • 2,108
  • 1
  • 15
  • 15