Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • How your questions is related to QItemDelegate? Show some code. Commented Apr 14, 2014 at 11:43
  • updated to show that this code is within a QItemDelegate::createEditor method. Thanks for pointing it out, it wasn't very clear. Commented Apr 14, 2014 at 12:58
  • Where do you call QAbstractItemView::closeEditor / commitData? Commented Apr 14, 2014 at 13:24
  • I've not set that up as when I used a simple ComboBox it appears to do that itself. Commented Apr 14, 2014 at 13:30
  • Yes. But you are using your custom editor. Commented Apr 14, 2014 at 14:30