OpenGL under QT and color gradients

I tried using the QGLWidet, but rendering a triangle with red, blue, and green verticies shows up as all one color - I was expecting a gradient between the verticies.

This works in my program outside of qt, and other GL programs also show color gradients.

Perhaps QT is not using the same GL rendering engine Mesa)? Maybe I need to buy QT’s OpenGL module (but example GL programs work)?

I’m using RedHat9.0 which has qt-3.1 and XFree86-Mesa-libGL-4 and XFree86-4.3 (I’ve installed nVidia’s drivers for the GeForce MX card).