title: Qt OpenGL default scale is really strange
body: <p>I'm working on an OpenGL example out of a Qt programming book. Almost everything works fine, but the default scale seems to be way off. I should be seeing a pretty standard cube, but instead I see this.</p>
  
  <p><img src="https://i.stack.imgur.com/niOn7.png" alt="wierd cube"></p>
  
  <p>My code for the cube looks like this:</p>
  
  <pre><code>glBegin(GL_QUADS);
  
  //top face
  qglColor(m_faceColors[0]);
  glVertex3f(-m_cubeSize, m_cubeSize, -m_cubeSize);
  glVertex3f(m_cubeSize, m_cubeSize, -m_cubeSize);
  glVertex3f(m_cubeSize, m_cubeSize, m_cubeSize);
  glVertex3f(-m_cubeSize, m_cubeSize, m_cubeSize);
  
  // left face
  qglColor(m_faceColors[1]);
  glVertex3f(-m_cubeSize, -m_cubeSize, -m_cubeSize);
  glVertex3f(-m_cubeSize, m_cubeSize, -m_cubeSize);
  glVertex3f(-m_cubeSize, m_cubeSize, m_cubeSize);
  glVertex3f(-m_cubeSize, -m_cubeSize, m_cubeSize);
  </code></pre>
  
  <p>And so on...</p>
  
  <p>I'm not calling any weird glScalef's. My resizeGL() looks like this:</p>
  
  <pre><code>void GLWidget::resizeGL(int width, int height)
  {
      glViewport(0, 0, width, height);
      glMatrixMode(GL_PROJECTION);
      glLoadIdentity();
      m_width = (height&gt;0) ? (GLfloat)width/height : 1;
      glOrtho(-width, +width, -1.0, 1.0, -2, 2);
      glMatrixMode(GL_MODELVIEW);
      glLoadIdentity();
  }
  </code></pre>
  
  <p>m_cubeSize is 1.0</p>
  
  <p>Anyway, when I do this in the draw() function:</p>
  
  <pre><code>glScalef(275, 0.5, 0.5);
  </code></pre>
  
  <p>I see this (looks correct):</p>
  
  <p><img src="https://i.stack.imgur.com/IXPC3.png" alt="proper cube"></p>
  
  <p>Does anyone know why the x scale would be so small by default? I'm doing exactly what the book says, but I'm really confused. I've done quite a bit of OpenGL before (with Glut), but this is my first time using Qt as a wrapper.</p>