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).
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:
this has no effect. now, the standard editor instead of my own one is used again.Qt Code:
// no default factory! //QItemEditorFactory::setDefaultFactory(factory); ... QItemDelegate delegate; delegate.setItemEditorFactory(factory); ... view.setItemDelegate(&delegate);To copy to clipboard, switch view to plain text mode
Bookmarks