qt: fix qtdbus build.

Fixes #19713.