Are you passing an appropriate width value?
I.e. if you call metrics.width(qText), how many pixels does it need vs. what you are giving to elided text as available width?

Cheers,
_