Fix Qt native file and remove redundancies.