I wanted to do that with signals & slots, but yes, your solution is good.

Thanks a lot