Fix Qt6 build
Between the CI run in the last merge request and merging it to master, the CI changed its deprecations and the CI thus currently fails
Between the CI run in the last merge request and merging it to master, the CI changed its deprecations and the CI thus currently fails