itom
Loading...
Searching...
No Matches
QtVariantEditorFactory Class Reference

The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager objects. More...

Inheritance diagram for QtVariantEditorFactory:
QtAbstractEditorFactory< QtVariantPropertyManager > QtAbstractEditorFactoryBase

Public Member Functions

 QtVariantEditorFactory (QObject *parent=0)
 
 ~QtVariantEditorFactory ()
 
- Public Member Functions inherited from QtAbstractEditorFactory< QtVariantPropertyManager >
 QtAbstractEditorFactory (QObject *parent)
 
QWidget * createEditor (QtProperty *property, QWidget *parent)
 
void addPropertyManager (QtVariantPropertyManager *manager)
 
void removePropertyManager (QtVariantPropertyManager *manager)
 
QSet< QtVariantPropertyManager * > propertyManagers () const
 
QtVariantPropertyManagerpropertyManager (QtProperty *property) const
 
- Public Member Functions inherited from QtAbstractEditorFactoryBase

Protected Member Functions

void connectPropertyManager (QtVariantPropertyManager *manager)
 
QWidget * createEditor (QtVariantPropertyManager *manager, QtProperty *property, QWidget *parent)
 
void disconnectPropertyManager (QtVariantPropertyManager *manager)
 
- Protected Member Functions inherited from QtAbstractEditorFactory< QtVariantPropertyManager >
virtual QWidget * createEditor (QtVariantPropertyManager *manager, QtProperty *property, QWidget *parent)=0
 
virtual void connectPropertyManager (QtVariantPropertyManager *manager)=0
 
virtual void disconnectPropertyManager (QtVariantPropertyManager *manager)=0
 
void managerDestroyed (QObject *manager)
 
- Protected Member Functions inherited from QtAbstractEditorFactoryBase
 QtAbstractEditorFactoryBase (QObject *parent=0)
 

Private Attributes

QtVariantEditorFactoryPrivated_ptr
 

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase

Detailed Description

The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager objects.

The variant factory provides the following widgets for the specified property types:

\table \header \o Property Type \o Widget \row \o int \o QSpinBox \row \o double \o QDoubleSpinBox \row \o bool \o QCheckBox \row \o QString \o QLineEdit \row \o QDate \o QDateEdit \row \o QTime \o QTimeEdit \row \o QDateTime \o QDateTimeEdit \row \o QKeySequence \o customized editor \row \o QChar \o customized editor \row \o enum \o QComboBox \row \o QCursor \o QComboBox \endtable

Note that QtVariantPropertyManager supports several additional property types for which the QtVariantEditorFactory class does not provide editing widgets, e.g. QPoint and QSize. To provide widgets for other types using the variant approach, derive from the QtVariantEditorFactory class.

See also
QtAbstractEditorFactory, QtVariantPropertyManager

Constructor & Destructor Documentation

◆ QtVariantEditorFactory()

QtVariantEditorFactory::QtVariantEditorFactory ( QObject * parent = 0)

Creates a factory with the given parent.

◆ ~QtVariantEditorFactory()

QtVariantEditorFactory::~QtVariantEditorFactory ( )

Destroys this factory, and all the widgets it has created.


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