Per the title -- I have a QStackedWidget controlled by a QComboBox. Each page in the stacked widget contains a plot, some more populated than others.

When switching pages via the combo box, the UI freezes for a couple of seconds as it tries to paint the new plot; this is specially bad on complex plots.

After switching plots once and switching pages back, it's fast.

I'm wondering how folks handle this to avoid locking-up the UI? Can the non-visible plots be forced to "paint" by some mechanism? Or is there another way?