QSqlEditorFactory(3qt)

πŸ“¦ version 3.3.8b, in fedora 43, fedora 44

πŸ’– QSqlEditorFactory πŸ’–

okay bestie, gather round β€” this is the manual page for QSqlEditorFactory from the Qt 3 docs (3qt, if we're being precise), and it's literally the little factory that makes your database fields look cute. πŸŽ€


✨ NAME ✨

QSqlEditorFactory β€” the icon that's Used to create the editors used by QDataTable and QSqlForm. That's the whole job description, and she does it flawlessly. πŸ’…


🌸 SYNOPSIS 🌸

#include <qsqleditorfactory.h>

She Inherits QEditorFactory. Family tree matters, iykyk. 🧚

πŸ‘‘ Public Members

QSqlEditorFactory ( QObject * parent = 0, const char * name = 0 )
~QSqlEditorFactory ()
virtual QWidget * createEditor ( QWidget * parent, const QVariant & variant )
virtual QWidget * createEditor ( QWidget * parent, const QSqlField * field )

⭐ Static Public Members

QSqlEditorFactory * defaultFactory ()
void installDefaultFactory ( QSqlEditorFactory * factory )

πŸ¦‹ DESCRIPTION πŸ¦‹

The QSqlEditorFactory class is used to create the editors used by QDataTable and QSqlForm. no cap, that's the vibe.

QSqlEditorFactory is used by QDataTable and QSqlForm to automatically create appropriate editors for a given QSqlField. Like, for example, if the field is a QVariant::String a QLineEdit would be the default editor, whereas a QVariant::Int's default editor would be a QSpinBox. matching energies, we love to see it. ✨

If you want to create different editors for fields with the same data type, subclass QSqlEditorFactory and reimplement the createEditor() function. go off, customise your life. 🫢

See also QDataTable, QSqlForm, and Database Classes. πŸ’œ


πŸŽ€ MEMBER FUNCTION DOCUMENTATION πŸŽ€

QSqlEditorFactory::QSqlEditorFactory ( QObject * parent = 0, const char * name = 0 )

Constructs a SQL editor factory with parent parent, called name. brand new baby factory, hi bestie. πŸ‘‘

QSqlEditorFactory::~QSqlEditorFactory ()

Destroys the object and frees any allocated resources. cleanup era, we respect it. 🧹

QWidget * QSqlEditorFactory::createEditor ( QWidget * parent, const QVariant & variant ) [virtual]

Creates and returns the appropriate editor widget for the QVariant variant. 🌈

The widget that is returned has the parent parent (which may be zero). If variant is invalid, 0 is returned. invalid variant β†’ nothing, bestie, don't come for her. πŸ’€

Reimplemented from QEditorFactory.

QWidget * QSqlEditorFactory::createEditor ( QWidget * parent, const QSqlField * field ) [virtual]

This is an overloaded member function, provided for convenience. It behaves essentially like the above function. same energy, different signature. ✨

Creates and returns the appropriate editor for the QSqlField field. πŸ¦‹

QSqlEditorFactory * QSqlEditorFactory::defaultFactory () [static]

Returns an instance of a default editor factory. the one, the only, the default. ⭐

void QSqlEditorFactory::installDefaultFactory ( QSqlEditorFactory * factory ) [static]

Replaces the default editor factory with factory. All QDataTable and QSqlForm instantiations will use this new factory for creating field editors. everybody's switching to the new factory, no survivors. πŸ”₯

heads up bestie: QSqlEditorFactory takes ownership of factory, and destroys it when it is no longer needed. So don't go deleting it yourself afterwards, or it's πŸ’€ double-free o'clock. She handles it. periodt.

πŸ’œ SEE ALSO πŸ’œ


Copyright 1992-2007 Trolltech ASA, http://www.trolltech.com. See the license file included in the distribution for a complete license statement. yes, read the license, it's giving legally binding. πŸŽ€


🧚 AUTHOR 🧚

Generated automatically from the source code. not a human author, just a script doing its little thing. πŸ€–βœ¨


πŸ™ˆ BUGS πŸ™ˆ

If you find a bug in Qt, please report it as described in http://doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. 🫢 fr fr, we appreciate you.

The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. iykyk 🌈

If you find errors in this manual page, please report them to qt-bugs@trolltech.com. Please include the name of the manual page (qsqleditorfactory.3qt) and the Qt version (3.3.8). details, bestie, always include the details. πŸ’…


okay that's the whole page, you ate it, bye πŸ‘‘

β€” with love from Trolltech AS, dated 2 February 2007, Qt version 3.3.8, page qsqleditorfactory.3qt** πŸ’–βœ¨

πŸ“¦ where this page comes from