OpenGL Component

I can subclass the opengl component and use it inside a window, but if I put it inside a dialog component, the render function never gets called and makeCurrentContextActive() never succeeds, anyone had experience with this? I can post the code if needbe, but for now, just wondering if anyone else has experienced this?