QSapecNG
Public Member Functions | Protected Member Functions
QtVariantEditorFactory Class Reference

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

Inheritance diagram for QtVariantEditorFactory:
QtAbstractEditorFactory< QtVariantPropertyManager > QtAbstractEditorFactoryBase

List of all members.

Public Member Functions

 QtVariantEditorFactory (QObject *parent=0)
 ~QtVariantEditorFactory ()

Protected Member Functions

void connectPropertyManager (QtVariantPropertyManager *manager)
QWidget * createEditor (QtVariantPropertyManager *manager, QtProperty *property, QWidget *parent)
void disconnectPropertyManager (QtVariantPropertyManager *manager)

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:

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

Creates a factory with the given parent.

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


The documentation for this class was generated from the following files:
 All Classes Functions Enumerations Properties