Issue with qSlicerWebWidget in python scripted extensions

An example of use along with relevant signal connection is available at Does WebWidget's printToPdf work on Mac?

It may be helpful to move forward.