add code generator example

Change-Id: I78c2aec4466499871bc03b7ca35a38086a1fb548
Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>