Home · All Classes · Main Classes · Grouped Classes · Modules · Functions

QStandardItemEditorCreator Class Reference
[
QtGui module]

#include <QStandardItemEditorCreator>

Inherits QItemEditorCreatorBase.

This class was introduced in Qt 4.2.

Public Functions


Detailed Description

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.


Member Function Documentation

QStandardItemEditorCreator::QStandardItemEditorCreator ()

QWidget * QStandardItemEditorCreator::createWidget ( QWidget * parent ) const   [virtual]

QByteArray QStandardItemEditorCreator::valuePropertyName () const   [virtual]


Copyright © 2006 Trolltech Trademarks
Qt 4.2.0-tp1