changed constractor to use QMetaObject::invokeMethod in order to get int...

...o the event loop asap