I'm working on an app using OpenGL and FBOs. The FBOs need to use the same basic rendering code as the main window, so I'm left with two choices:

Qt Code:
  1. MyRenderer: public QGLWidget, private CoreRenderer
  2. {
  3. }
  4. -OR-
  5. MyRenderer: public QGLWidget
  6. {
  7. private:
  8. CoreRenderer renderer;
  9. }
To copy to clipboard, switch view to plain text mode 

The same options also exist for the FBO class.

Will Qt care which way I do it? And if not, which way would work nicest with Qt?