Hello!

I am trying to build a low-maintenance-data-pipe from a QDialog's QLineEdits to a QStandardModel or a QXMLStreamWriter.

So far the quick and dirty solution would be to read all QLineEdits into QStrings and put them into the QStandardModelItem or the QXMLStreamWriter.

But this is relative unflexible, because I have to do a lot of rewriting if LineEdits are added or removed.

I thought of setting up a QStringList with names of all QLineEdits and iterate through them to fetch the values. But this still needs some maintance if the QLineEdits change.

Can someone of you point me to a better solution?
Pieces of code are welcome

Kind regards,
HomeR