I don't know for sure, but it might work if you register the type with Qt:
http://doc.trolltech.com/4.6/custom-types.html