I have asked a very similar question and received a very good answer. But the lead programmer on the project prefers it done a different way.
I have a class file VendorEmail that creates a abstractlistmodel - the user is allowed to add and remove email address from the list. Once that are finished, there is an OK button for them to click.
I need to write a function in VendorEmail that will return the model with the values. So when the OK button is clicked the function is called and I can pass that model to the parent class dialog. I do understand there are other ways of doing this, but the prefer method is the function explained above.
thanks to everyone that can help on this