Make it compile against qt6

2 jobs for master in 2 minutes and 14 seconds (queued for 2 seconds)