![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
QDefaultItemEditorFactory () | |
QWidget * | createEditor (int userType, QWidget *parent) const override |
Creates an editor widget with the given parent for the specified userType of data, and returns it as a QWidget. | |
QByteArray | valuePropertyName (int) const override |
Returns the property name used to access data for the given userType of data. | |
![]() | |
QItemEditorFactory () | |
Constructs a new item editor factory. | |
virtual | ~QItemEditorFactory () |
Destroys the item editor factory. | |
virtual QWidget * | createEditor (int userType, QWidget *parent) const |
Creates an editor widget with the given parent for the specified userType of data, and returns it as a QWidget. | |
virtual QByteArray | valuePropertyName (int userType) const |
Returns the property name used to access data for the given userType of data. | |
void | registerEditor (int userType, QItemEditorCreatorBase *creator) |
Registers an item editor creator specified by creator for the given userType of data. | |
Additional Inherited Members | |
![]() | |
static const QItemEditorFactory * | defaultFactory () |
Returns the default item editor factory. | |
static void | setDefaultFactory (QItemEditorFactory *factory) |
Sets the default item editor factory to the given factory. | |
Definition at line 196 of file qitemeditorfactory.cpp.
|
inline |
Definition at line 199 of file qitemeditorfactory.cpp.
|
overridevirtual |
Creates an editor widget with the given parent for the specified userType of data, and returns it as a QWidget.
Reimplemented from QItemEditorFactory.
Definition at line 204 of file qitemeditorfactory.cpp.
References cb, QSizePolicy::Ignored, le, parent, QAbstractSpinBox::setFrame(), QDoubleSpinBox::setMaximum(), QSpinBox::setMaximum(), QDoubleSpinBox::setMinimum(), QSpinBox::setMinimum(), QWidget::setSizePolicy(), QStyle::SH_ItemView_DrawDelegateFrame, QStyle::SH_ItemView_ShowDecorationSelected, QWidget::sizePolicy, and QSizePolicy::verticalPolicy().
|
overridevirtual |
Returns the property name used to access data for the given userType of data.
Reimplemented from QItemEditorFactory.
Definition at line 274 of file qitemeditorfactory.cpp.