Fixed bugs with access to Qt objects in MT environment.