Make Qt5 Screen access depth via primaryScreen API and prevent widgets creation in child thread