I have a doubt. You will still need to set your factory somewhere right ?
Also in the example in post #1, you create a QItemEditorFactory and thats why you dont get the default editors with it.

Why cant you obtain the factory from item delegate and register you editor ??
QItemDelegate::itemEditorFactory and QStyledItemDelegate::itemEditorFactory

Wont it be easier ?