create derivered qtsingleapplication class
all global variables and functions moved to this one