Home · All Classes · Main Classes · Grouped Classes · Modules · Functions |
The QStandardItemEditorCreator class provides the possibility to register widgets without having to subclass QItemEditorCreatorBase. More...
#include <QStandardItemEditorCreator>
Inherits QItemEditorCreatorBase.
This class was introduced in Qt 4.2.
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:
QItemEditorFactory *editorFactory = new QItemEditorFactory; QItemEditorCreatorBase *creator = new QStandardItemEditorCreator<MyFancyDateTimeEdit>(); editorFactory->registerEditor(QVariant::DateType, creator);
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.
See also QItemEditorCreatorBase, QItemEditorFactory, and QItemDelegate.
Constructs an editor creator object.
Copyright © 2007 Trolltech | Trademarks | Qt 4.2.3 |