changed constractor to use QMetaObject::invokeMethod in order to get into the event loop asap