Creating PtWebClient at runtime.

I am trying to create PtWebClient widget at run time. But I get compilation error as: "undefined reference to `PtWebClient’ ".
The project is attached below. Can anyone please help about what can be the reason that I am facing this error? Also, how can I create PtWebClient at run time?