I wrote a tutorial some months ago...

http://www.qtcentre.org/threads/3714...%29?highlight=