Hello.

Well the question sums it up. I have a data structure that has a list of pair values per object and I would like to show them in a QComboBox of a QTableView.

Qt Code:
  1. typedef QPair<QString, QString> MyPair;
  2. typedef QList<MyPair> MyList;
  3. struct MyObject{
  4. MyList myList;
  5. };
To copy to clipboard, switch view to plain text mode 

How can I translate that into a QStandardItemModel?
How can I render that in a QComboBox?

I have already done it using a QTableWidget but maintaining both, the real data and the showed data, updated is getting messy.

Thanks for your help.