CopperSpice API
1.9.1
|
Provides the possibility to register widgets without having to subclass QItemEditorCreatorBase. More...
Public Methods | |
QStandardItemEditorCreator () | |
QWidget * | createWidget (QWidget *parent) const override |
QString | valuePropertyName () const override |
Public Methods inherited from QItemEditorCreatorBase | |
virtual | ~QItemEditorCreatorBase () |
The QStandardItemEditorCreator class provides the possibility to register widgets without having to subclass QItemEditorCreatorBase. This convenience template class makes it possible to register widgets without having to subclass QItemEditorCreatorBase.
Setting the editorFactory
created above in an item delegate via QItemDelegate::setItemEditorFactory() makes sure that all values of type QVariant::DateTime will be edited in MyFancyDateTimeEdit
.
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 the CopperSpice Meta Object System. Set the user property as follows:
|
inline |
Constructs an editor creator object.
|
inlineoverridevirtual |
Implements QItemEditorCreatorBase::createWidget()
|
inlineoverridevirtual |
Implements QItemEditorCreatorBase::valuePropertyName()