Implement Qt window like Windows version.