What I mean by a child in this instance is I have one object (class) that is derived from the QGLWidget class. This QGLWidget is my plot object I then have other objects of different classes that all have a pointer to my QGLWidget object (the plot). So if I want to have grid lines I create a grid line object and allow it access to my plot object so it can draw directly onto the QGLWidget. This grid line object is what I mean when I say a child object. So the data line object and titles object are also examples of what I mean by a child. Sorry I guess child is the wrong word to use, but they all look up to the main plot object like a parent-figure thus being why I called them children. All of these children or sub-objects are all QObjects so they can render onto the QGLWidget. All of these sub-QObjects have a paint function which is called inside the plot object's paintGL function.

I do not know anything about this QGLContext stuff as I have not used it. I might look into this, but I do not know if I need to handle anything with this. I have not retrieved any contexts anywhere but everything draws correctly on the screen. Is there anything else you need to know? What code do you mean you want when you say just the beginning and ending parts? Thanks again!