Maybe because you didn't declare the namespace?

http://doc.trolltech.com/4.1/qtxml.h...-to-namespaces