Check the links I provided - there are some examples. Maybe Qt examples provide more code.