This is a demo of Qt5 with openGL, which used the Factory Desgin Pattern.