I apologize for the wrong answers. Suffice it to say I need to work on my reading comprehension (first answer) and I should look at the docs before answering (second answer).
From the QAbstractItemModel docs:I think this will work:virtual QVariant data ( const QModelIndex & index, int role = Qt:: DisplayRole ) const = 0Qt Code:
target = selectionModel->model()->data(editIndex.first());To copy to clipboard, switch view to plain text mode




Reply With Quote
Bookmarks