@Rohith I don't know. Use Google Search to find it out!
You have a list of examples here
Check the links I provided - there are some examples. Maybe Qt examples provide more code.