Workspace 6.21.5
Public Member Functions | Protected Member Functions | List of all members
QtVariantEditorFactory Class Reference

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

#include <Workspace/Widgets/PropertyBrowser/qtvariantproperty.h>

Inheritance diagram for QtVariantEditorFactory:
[legend]

Public Member Functions

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

Protected Member Functions

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

Additional Inherited Members

- Protected Slots inherited from QtAbstractEditorFactoryBase
virtual void managerDestroyed (QObject *manager)=0
 

Detailed Description

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

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

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 ( QObject *  parent = nullptr)

Creates a factory with the given parent.

◆ ~QtVariantEditorFactory()

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

Member Function Documentation

◆ connectPropertyManager()

void connectPropertyManager ( QtVariantPropertyManager manager)
overrideprotected

◆ createEditor()

QWidget * createEditor ( QtVariantPropertyManager manager,
QtProperty property,
QWidget *  parent 
)
overrideprotected

◆ disconnectPropertyManager()

void disconnectPropertyManager ( QtVariantPropertyManager manager)
overrideprotected