|qmake:||QT += widgets|
This class was introduced in Qt 4.2.
|QItemEditorCreator(const QByteArray &valuePropertyName)|
|virtual QWidget *||createWidget(QWidget *parent) const override|
|virtual QByteArray||valuePropertyName() const override|
- 2 public functions inherited from QItemEditorCreatorBase
QItemEditorCreator<MyEditor> *itemCreator = new QItemEditorCreator<MyEditor>("myProperty"); QItemEditorFactory *factory = new QItemEditorFactory;
The constructor takes the name of the property that contains the editing data. QStyledItemDelegate can then access the property by name when it sets and retrieves editing data. Only use this class if your editor does not define a user property (using the USER keyword in the Q_PROPERTY macro). If the widget has a user property, you should use QStandardItemEditorCreator instead.
Member Function Documentation
QItemEditorCreator::QItemEditorCreator(const QByteArray &valuePropertyName)
Constructs an editor creator object using valuePropertyName as the name of the property to be used for editing. The property name is used by QStyledItemDelegate when setting and getting editor data.
Note that the valuePropertyName is only used if the editor widget does not have a user property defined.
Reimplements: QItemEditorCreatorBase::createWidget(QWidget *parent) const.
[override virtual] QByteArray QItemEditorCreator::valuePropertyName() const
Reimplements: QItemEditorCreatorBase::valuePropertyName() const.
© 2019 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.