How to make signals and slots working in a console application? (Event loop not working)