Similar to one of the previous comments, I think the QString-to-int conversion code is required