Changed qt loader to accept Mock