These are the magical lines that are responsible and that need this:

    void hideEvent(QHideEvent* ){ m_renderer.deactivate(); }
    void showEvent(QShowEvent* ){ m_renderer.activate(); } 

(m_renderer itself runs all its magic in a thread thats separate from the GUI)