I've tried to check for this state, but apparently this state is never set.
I also tried to not to paint the progress bar (but the background) when the item is for example selected, and then the editor is displayed correctly (but no progress bar is displayed when the user selects a row...).
So I think the problem is that views don't initialize the provided option appropriately. I could however store the QModelIndex of the currently edited item (in createEditor), and then test for that in the paint method. But this would obviously be a hack, and I would like to avoid that.
Thomas




Reply With Quote
Bookmarks