I use CMake, not QBS, but this should be similar.

All you need to do in CMake is to link your test target to QuickTest module (exactly as you link Core, Gui etc modules)