Fix compile error against qt6

2 jobs for master in 5 minutes and 3 seconds