1. I implemented QItemDelegate to create some custom widget to edit data from my custom model. How can I get the QTableView to display this editor delegate even if the user is not editing the cell?
In the Qt Icons Example openPersistentEditor(item) is used. But I want to have this behaviour for one column/the delegate. Is there another way to do this?

2. How can I call resizeRowToContents(int) when the editor delegate is shown (to make the cell fit the editor widget size) and after the editor is deleted? I would like the tableView resize dynamically when showing the editor.

Thanks in advance,
-Jens