Re: [Interest] QAbstractTableModel: ItemDelegate for both display and edit role

2014-06-07 Thread Ch'Gans
Hi Adam, Thank you for your code snip, I used the persistent editor approach, as my table will never contains more than a dozen rows, I think this is OK. Another thing I have been fighting with, was to have my editor centered in the table cells, I found 2 interesting results [1], [2] But I didn

[Interest] QAbstractTableModel: ItemDelegate for both display and edit role

2014-06-05 Thread Christian Gagneraud
Hi all, I would like to use item delegates to both display and edit items using QAbstractTableModel/QTableView. I was able to get my specialised widget used when the user *edit* the field but I would like to have the same widget used for displaying the field as well. My QStyledItemDelegate bas