I'm not sure what QT syntax is...But in general a GLSL is compiled and Attached to an object.
In this case,
1. create an object which will point to your shader program.
2. look out for an attach() method. (may be like widget->attach(ShaderObject *)).
In this way you can attach shader programs. Consider going through QT API reference.