Home

QtVariantEditorFactory Class Reference

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

 #include <QtVariantEditorFactory>

Inherits QtAbstractEditorFactory<QtVariantPropertyManager>.

Public Functions

Additional Inherited Members


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 TypeWidget
intQSpinBox
doubleQDoubleSpinBox
boolQCheckBox
QStringQLineEdit
QDateQDateEdit
QTimeQTimeEdit
QDateTimeQDateTimeEdit
QKeySequencecustomized editor
QCharcustomized editor
enumQComboBox
QCursorQComboBox

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 and QtVariantPropertyManager.


Member Function Documentation

QtVariantEditorFactory::QtVariantEditorFactory ( QObject * parent = 0 )

Creates a factory with the given parent.

QtVariantEditorFactory::~QtVariantEditorFactory ()

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


Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) Trademarks
Qt Solutions