I was trying to use the plot widget as a child in the Tab widget. I have taken the basic example code to plot square function and added that after setupUi(this) function in the window constructor. There are three tabs in the application.
Tab containing the plot is the third one - and when I click on the tab at run time... plot captures the screen of previous tab and that is displayed on the axis.
I am not sure about the repaint event, even after calling the replot function it is not updating.
I hope someone can point me to few ideas.