Eneboo - Documentación para desarrolladores
Slots públicos | Métodos públicos
Referencia de la Clase QDataView

The QDataView class provides read-only SQL forms. Más...

#include <qdataview.h>

Diagrama de herencias de QDataView
QWidget QWidget QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QPaintDevice QObject QDesignerDataView QDesignerDataView2

Lista de todos los miembros.

Slots públicos

virtual void refresh (QSqlRecord *buf)
virtual void readFields ()
virtual void writeFields ()
virtual void clearValues ()
virtual void refresh (QSqlRecord *buf)
virtual void readFields ()
virtual void writeFields ()
virtual void clearValues ()

Métodos públicos

 QDataView (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~QDataView ()
virtual void setForm (QSqlForm *form)
QSqlFormform ()
virtual void setRecord (QSqlRecord *record)
QSqlRecordrecord ()
 QDataView (QWidget *parent=0, const char *name=0, WFlags fl=0)
 ~QDataView ()
virtual void setForm (QSqlForm *form)
QSqlFormform ()
virtual void setRecord (QSqlRecord *record)
QSqlRecordrecord ()

Descripción detallada

The QDataView class provides read-only SQL forms.

sql

This class provides a form which displays SQL field data from a record buffer. Because QDataView does not support editing it uses less resources than a QDataBrowser. This class is well suited for displaying read-only data from a SQL database.

If you want a to present your data in an editable form use QDataBrowser; if you want a table-based presentation of your data use QDataTable.

The form is associated with the data view with setForm() and the record is associated with setRecord(). You can also pass a QSqlRecord to the refresh() function which will set the record to the given record and read the record's fields into the form.


Documentación del constructor y destructor

QDataView::QDataView ( QWidget parent = 0,
const char *  name = 0,
WFlags  fl = 0 
)

Constructs a data view which is a child of parent, called name, and with widget flags fl.

QDataView::~QDataView ( )

Destroys the object and frees any allocated resources.

QDataView::QDataView ( QWidget parent = 0,
const char *  name = 0,
WFlags  fl = 0 
)
QDataView::~QDataView ( )

Documentación de las funciones miembro

void QDataView::clearValues ( ) [virtual, slot]

Clears the default form's values. If there is no default form, nothing happens. All the values are set to their 'zero state', e.g. 0 for numeric fields, "" for string fields.

virtual void QDataView::clearValues ( ) [virtual, slot]
QSqlForm * QDataView::form ( )

Returns the default form used by the data view, or 0 if there is none.

Ver también:
setForm()
QSqlForm* QDataView::form ( )
void QDataView::readFields ( ) [virtual, slot]

Causes the default form to read its fields from the record buffer. If there is no default form, or no record, nothing happens.

Ver también:
setForm()
virtual void QDataView::readFields ( ) [virtual, slot]
QSqlRecord * QDataView::record ( )

Returns the default record used by the data view, or 0 if there is none.

Ver también:
setRecord()
QSqlRecord* QDataView::record ( )
void QDataView::refresh ( QSqlRecord buf) [virtual, slot]

Causes the default form to display the contents of buf. If there is no default form, nothing happens.The buf also becomes the default record for all subsequent calls to readFields() and writefields(). This slot is equivalant to calling:

    myView.setRecord( record );
    myView.readFields();
Ver también:
setRecord() readFields()
virtual void QDataView::refresh ( QSqlRecord buf) [virtual, slot]
virtual void QDataView::setForm ( QSqlForm form) [virtual]
void QDataView::setForm ( QSqlForm form) [virtual]

Sets the form used by the data view to form. If a record has already been assigned to the data view, the form will display that record's data.

Ver también:
form()
virtual void QDataView::setRecord ( QSqlRecord record) [virtual]
void QDataView::setRecord ( QSqlRecord record) [virtual]

Sets the record used by the data view to record. If a form has already been assigned to the data view, the form will display the data from record in that form.

Ver también:
record()
virtual void QDataView::writeFields ( ) [virtual, slot]
void QDataView::writeFields ( ) [virtual, slot]

Causes the default form to write its fields to the record buffer. If there is no default form, or no record, nothing happens.

Ver también:
setForm()

La documentación para esta clase fue generada a partir de los siguientes ficheros:
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'