What I'd like to know is how pass my QGLFormat object to QGLContext?

When I try to do this:

Qt Code:
  1. QGLFormat mFormat = QGLFormat( QGL::DepthBuffer | QGL::AlphaChannel );
  2.  
  3. QGLContext mContext = QGLContext( mFormat );
To copy to clipboard, switch view to plain text mode 

I get this error:

Qt Code:
  1. error: 'QGLContext::QGLContext(const QGLContext&)' is private
To copy to clipboard, switch view to plain text mode 

Using Qt Creator with Windows 7.

What is wrong here?