The Borland compiler says: Error E2364 opengl\qgl_win.cpp 228: Attempting to return a reference to a local object in function QGLWidget::colormap() const -- Regards, Andreas Hausladen