I've got an application that has a main window with a glWidget and sliders (as in helloGL), and a second window alongside it that has the controls to manipulate the GL widget's content.

That is, I have the interface built. Where I'm stuck is that I can't work out how to share variables between the two windows so I can communicate changes to the glWidget context from the controls window.

This is likely an issue with my not yet grasping how QT works. I'm sure there must be a way to communicate between windows, but I can't see it.

Any help/pointers would be much apreciated.