Can I convert QString to GLenum? or Must I code it myself?
GLenum e = xrett.attribute("type"); // "GL_AMBIENT"