I am doing the same now and it looks like I will have to implement this feature myself. I have found an example here that looks promising:

http://labs.trolltech.com/forums/topic/406