![]() |
Qt 4.8
|
The QStandardItemEditorCreator class provides the possibility to register widgets without having to subclass QItemEditorCreatorBase. More...
#include <qitemeditorfactory.h>
Public Functions | |
| QWidget * | createWidget (QWidget *parent) const |
| Reimplemented Function More... | |
| QStandardItemEditorCreator () | |
| Constructs an editor creator object. More... | |
| QByteArray | valuePropertyName () const |
| Reimplemented Function More... | |
Public Functions inherited from QItemEditorCreatorBase | |
| virtual | ~QItemEditorCreatorBase () |
| Destroys the editor creator object. More... | |
Properties | |
| QByteArray | propertyName |
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.
Example:
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 QItemDelegate to set and retrieve the data (using Qt's Meta-Object System{meta-object system}). You set the user property with the USER keyword:
Definition at line 82 of file qitemeditorfactory.h.
|
inline |
|
inlinevirtual |
Reimplemented Function
Implements QItemEditorCreatorBase.
Definition at line 88 of file qitemeditorfactory.h.
|
inlinevirtual |
Reimplemented Function
Implements QItemEditorCreatorBase.
Definition at line 89 of file qitemeditorfactory.h.
|
private |
Definition at line 92 of file qitemeditorfactory.h.