title: How to look for equivalent functions of OpenGL in QGLWidget?
body: <p>I'm new to OpenGL and Glut. There is a project implemented by Glut. I googled and found that there is an OpenGL implementation in Qt, called QGLWidget. However, it's hard for me converting the old Glut code to new Qt code since I don't know how to find equivalent function for Glut functions in Qt. Part of the code look like this:   </p>
  
  <pre><code>glutInit(&amp;argc,argv);
  glutInitDisplayMode(GLUT_DOUBLE|GLUT_RGB);
  glutInitWindowSize(gray1-&gt;width,gray1-&gt;height);
  glutInitWindowPosition(100,100);
  glutCreateWindow("hello");
  init();
  glutDisplayFunc(&amp;display);
  glutReshapeFunc(reshape);
  glutMouseFunc(mouse);
  glutMotionFunc(mouse_move);
  glutMainLoop();
  </code></pre>
  
  <p>The glut* functions above don't exist in Qt's document.  So my problem is how can I find equivalent glut functions in functions of QGLWidget? </p>