[Qt] Redesign the build system