This was solved easily. From the documentation I found that there is a recursive property
that makes it possible with recursive shaders (duh)! So for example code:
ShaderEffectSource {
id:buf1;
recursive:true;
sourceItem: effect;
}
ShaderEffect {
id:effect;
property variant src: buf1;
//fragment shader then uses src as texture
}