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.
typedef QPair<QString, QString> MyPair;
typedef QList<MyPair> MyList;
struct MyObject{
MyList myList;
};
typedef QPair<QString, QString> MyPair;
typedef QList<MyPair> MyList;
struct MyObject{
MyList myList;
};
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.
Bookmarks