Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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.
 
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)
 [2]
 

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, QStyle::SH_ItemView_DrawDelegateFrame, and QStyle::SH_ItemView_ShowDecorationSelected.

◆ 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: