Mike, I have answered your question, very high level I know.
I also found a solution to my “issue”.
I have written a Class of static function MyQCodeGenHelper.
When i need something more “special”, I simply create a function that return the desired code.
If you have a better way of doing so, let me know. I'll be happy to use it and not have to switch to QCubed.
thanks