using qwindow to render opengl context