![]() |
| ||
Classes - Annotated - Tree - Functions - Home - Structure |
The QEditorFactory class is used to create editor widgets for QVariant data types. More...
#include <qeditorfactory.h>
Inherits QObject.
Inherited by QSqlEditorFactory.
The QEditorFactory class is used to create editor widgets for QVariant data types.
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.
Reimplemented in QSqlEditorFactory.
Replaces the default editor factory with factory. QEditorFactory takes ownership of factory, and destroys it when it is no longer needed.
Search the documentation, FAQ, qt-interest archive and more (uses
www.trolltech.com):
This file is part of the Qt toolkit, copyright © 1995-2001 Trolltech, all rights reserved.
Copyright © 2001 Trolltech | Trademarks | Qt version 3.0.0-beta1-beta1
|