Try to consolidate most Qt stuff into one single file