I would have preferred a quicker way using Q_PROPERTY, but I think the only way is what you've suggested to me.
Thanks so much