wysota,

Right you were! Adding 'if (role==QtDisplayRole) return ...; return QVariant();' solved the problem. And your answer came in time for my deadline too, thanks!

Matt