[Qt] Fix support for silent builds