Quote Originally Posted by wysota View Post
The problem here might be that you register the editor for QString and by default the model doesn't contain strings (if it's empty, for example).
could you elaborate on that? the model uses custom SceneItem objects storing the actual data (strictly following the official QT tutorial on creating customs models). the data is definitely handled as QVariant::String (read: QString).
Quote Originally Posted by wysota View Post
In your case I'd suggest to subclass the delegate class and reimplement QAbstractItemDelegate::createEditor() to return your widget instead of QLineEdit.
yes, i tried this and it works. nevertheless, providing editors via the factory would simply be the more elegant way for my purpose, so i'd really like to get it working.

btw: i tried this approach:
Qt Code:
  1. // no default factory!
  2. //QItemEditorFactory::setDefaultFactory(factory);
  3. ...
  4. QItemDelegate delegate;
  5. delegate.setItemEditorFactory(factory);
  6. ...
  7. view.setItemDelegate(&delegate);
To copy to clipboard, switch view to plain text mode 
this has no effect. now, the standard editor instead of my own one is used again.