Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |
The QEditorFactory class is used to create editor widgets for QVariant data types. More...
#include <qeditorfactory.h>
Inherits QObject.
Inherited by QSqlEditorFactory.
Each editor factory provides the createEditor() function which given a QVariant will create and return a QWidget that can edit that QVariant. For example if you have a QVariant::String type, a QLineEdit would be the default editor returned, whereas a QVariant::Int's default editor would be a QSpinBox.
If you want to create different editors for fields with the same data type, subclass QEditorFactory and reimplement the createEditor() function.
See also Advanced Widgets.
Reimplemented in QSqlEditorFactory.
Replaces the default editor factory with factory. QEditorFactory takes ownership of factory, and destroys it when it is no longer needed.
This file is part of the Qt toolkit. Copyright © 1995-2002 Trolltech. All Rights Reserved.
Copyright © 2002 Trolltech | Trademarks | Qt version 3.0.4
|