Thanks for the hint.
I tried changing the dialog constructor to this:
DialogExt(parent)
ComboList::ComboList(QWidget *parent, QAbstractItemModel *pListModel, QString strTitle):
DialogExt(parent)
To copy to clipboard, switch view to plain text mode
And set up the model like this:
m_pList->setModel(pListModel);
m_pList = new QListView(this);
m_pList->setModel(pListModel);
To copy to clipboard, switch view to plain text mode
This however gives the same result as initially. The dialog view is populated correctly, but the selected item is not set in the dialog list. And when selecting something here, the original combobox does not show the changed item.
Bookmarks