Results 2 issues of Andy Vandijck

I've added support for Qt 6.X Qt 5.X still works too. Deprecations and warnings are all fixed.

Port to Qt 6