Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QDefaultItemEditorFactory Class Reference
+ Inheritance diagram for QDefaultItemEditorFactory:
+ Collaboration diagram for QDefaultItemEditorFactory:

Public Member Functions

 QDefaultItemEditorFactory ()
 
QWidgetcreateEditor (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.
 
- Public Member Functions inherited from QItemEditorFactory
 QItemEditorFactory ()
 Constructs a new item editor factory.
 
virtual ~QItemEditorFactory ()
 Destroys the item editor factory.
 
virtual QWidgetcreateEditor (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 Public Member Functions inherited from QItemEditorFactory
static const QItemEditorFactorydefaultFactory ()
 Returns the default item editor factory.
 
static void setDefaultFactory (QItemEditorFactory *factory)
 Sets the default item editor factory to the given factory.
 

Detailed Description

Definition at line 196 of file qitemeditorfactory.cpp.

Constructor & Destructor Documentation

◆ QDefaultItemEditorFactory()

QDefaultItemEditorFactory::QDefaultItemEditorFactory ( )
inline

Definition at line 199 of file qitemeditorfactory.cpp.

Member Function Documentation

◆ createEditor()

QWidget * QDefaultItemEditorFactory::createEditor ( int  userType,
QWidget parent 
) const
overridevirtual

Creates an editor widget with the given parent for the specified userType of data, and returns it as a QWidget.

See also
registerEditor()

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().

+ Here is the call graph for this function:

◆ valuePropertyName()

QByteArray QDefaultItemEditorFactory::valuePropertyName ( int  userType) const
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.


The documentation for this class was generated from the following file: