QWidget::show shows a widget together with all its children.

When you look at your implementation of main you will see, that you do a show with your main window. This show includes the plot widgets you have created in the constructor.

Uwe