[Qt] Fix -Werror for the buildbots