42 #ifndef QITEMEDITORFACTORY_H 43 #define QITEMEDITORFACTORY_H 45 #include <QtCore/qmetaobject.h> 46 #include <QtCore/qbytearray.h> 47 #include <QtCore/qhash.h> 48 #include <QtCore/qvariant.h> 56 #ifndef QT_NO_ITEMVIEWS 66 virtual QByteArray valuePropertyName()
const = 0;
86 : propertyName(T::staticMetaObject.userProperty().
name())
98 : propertyName(avaluePropertyName) {}
118 #endif // QT_NO_ITEMVIEWS 124 #endif // QITEMEDITORFACTORY_H
The QItemEditorFactory class provides widgets for editing item data in views and delegates.
#define QT_END_NAMESPACE
This macro expands to.
The QItemEditorCreatorBase class provides an abstract base class that must be subclassed when impleme...
QByteArray valuePropertyName() const
Reimplemented Function
The QByteArray class provides an array of bytes.
The QHash class is a template class that provides a hash-table-based dictionary.
QItemEditorFactory()
Constructs a new item editor factory.
QWidget * createWidget(QWidget *parent) const
Reimplemented Function
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_INLINE_TEMPLATE
QStandardItemEditorCreator()
Constructs an editor creator object.
Type
This enum type defines the types of variable that a QVariant can contain.
The QItemEditorCreator class makes it possible to create item editor creator bases without subclassin...
QByteArray valuePropertyName() const
Reimplemented Function
The QStandardItemEditorCreator class provides the possibility to register widgets without having to s...
QWidget * createWidget(QWidget *parent) const
Reimplemented Function
virtual ~QItemEditorCreatorBase()
Destroys the editor creator object.
QItemEditorCreator(const QByteArray &valuePropertyName)
QHash< QVariant::Type, QItemEditorCreatorBase * > creatorMap