qt: fails with latest clang.

Fixes #17393.