QSapecNG
|
The QtVariantEditorFactory class provides widgets for properties created by QtVariantPropertyManager objects. More...
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) |
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.
QtVariantEditorFactory::QtVariantEditorFactory | ( | QObject * | parent = 0 | ) |
Creates a factory with the given parent.
Destroys this factory, and all the widgets it has created.