A minimal Qt OpenGL example based on the code at http://www.opengl-tutorial.org/beginners-tutorials/tutorial-2-the-first-triangle/
Shader code is converted to older shader version because my machine does not support shader v330
The tutorial code is in the TriangleWindow class. Small changes are made to get it to work with Qt.