Adapt to QtTest change in Qt6.8
toString now needs to be a free function and the template definition changed so the old code didn't compile anymore.
toString now needs to be a free function and the template definition changed so the old code didn't compile anymore.