fixed Qt dependency detection