Is it possible to replace a single editor of the default QItemEditorFactory?
-
I want to replace an editor of the default QItemEditorFactory for a single type. This editor should be used application wide in all views.
When I create a new QItemEditorFactory with an editor for the double type:
@
QItemEditorFactory *itemFactory = new QItemEditorFactory;
QItemEditorCreatorBase *editorCreator =
new QStandardItemEditorCreator<QCustomQDoubleSpinbox>();
itemFactory->registerEditor(QVariant::Double, editorCreator);
QItemEditorFactory::setDefaultFactory(itemFactory);
@The editors of all other default types are "removed".
Is there a way to replace the editor of a single type?
Or do I need to re-register all supported types?