Add ctLoger
minor update ctInput
Errore handle on QApplication for creating QWidegt