You might find this link useful. It's Windoze code, but could probably be translated into normal C++ for use with Qt.

This link too. And this one. As well as this one.