Reimplemented Public Functions
- 2 public functions inherited from QItemEditorCreatorBase
This convenience template class makes it possible to register widgets without having to subclass QItemEditorCreatorBase.
QItemEditorFactory *editorFactory = new QItemEditorFactory; QItemEditorCreatorBase *creator = new QStandardItemEditorCreator<MyFancyDateTimeEdit>(); editorFactory->registerEditor(QVariant::DateType, creator);
The editor must provide a user property that will contain the editing data. The property is used by QItemDelegates to set and retrieve the data (using Qt's meta-object system). You set the user property with the USER keyword:
Member Function Documentation
Constructs an editor creator object.
Reimplemented from QItemEditorCreatorBase::createWidget().
[virtual] QByteArray QStandardItemEditorCreator::valuePropertyName() const
Reimplemented from QItemEditorCreatorBase::valuePropertyName().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.