offscreen

KDDockWidgets is well tested under the offscreen Qt QPA.

$ myapp -platform offscreen

offscreen is useful for running your GUI tests without worrying about random focus or window activation issues.
It also allows you to run several GUI tests in parallel.