QxOrm  1.4.3
C++ Object Relational Mapping library
QxModelView : All classes registered into QxOrm context can be used with Qt model/view architecture (Qt widgets and/or QML views)

Classes

class  qx::IxModel
 qx::IxModel : interface to manage Qt model/view architecture with classes registered into QxOrm context (Qt widgets and/or QML views) More...
class  qx::QxModel< T >
 qx::QxModel<T> : all classes registered into QxOrm context can be used with Qt model/view architecture (Qt widgets and/or QML views) More...
class  qx::QxModelService< T, S >
 qx::QxModelService<T, S> : provides an easy way to connect your model to the QxService module (all queries are executed over network using client/server communication) More...

Files

file  IxModel.h
 

Interface to manage Qt model/view architecture with classes registered into QxOrm context (Qt widgets and/or QML views)


file  QxModel.h
 

All classes registered into QxOrm context can be used with Qt model/view architecture (Qt widgets and/or QML views)


file  QxModelService.h
 

qx::QxModelService<T, S> provides an easy way to connect your model to the QxService module (all queries are executed over network using client/server communication)


file  QxNestedModel.h
 

qx::model_view::create_nested_model is used by QxEntityEditor to manage complex data structure to work with relationships in QML views and Qt model/view architecture


Functions

template<class T >
qx::IxModelqx::model_view::create_nested_model (qx::IxModel *pParent, const QModelIndex &idxParent, T &t)
 qx::model_view::create_nested_model is used by QxEntityEditor to manage complex data structure to work with relationships in QML views and Qt model/view architecture

Function Documentation

template<class T >
qx::IxModel * qx::model_view::create_nested_model ( qx::IxModel pParent,
const QModelIndex &  idxParent,
T &  t 
)

qx::model_view::create_nested_model is used by QxEntityEditor to manage complex data structure to work with relationships in QML views and Qt model/view architecture

Parameters:
pParentParent model, qx::model_view::create_nested_model creates a child model associated to this parent model (a NULL value means that the created model is a root model)
idxParentIndex parent model, qx::model_view::create_nested_model creates a child model indexed by this parent index model (an empty index means that the created model is a root model)
tItem which contain all values exposed by the model to the views, t item can be a simple type, a pointer, a smart pointer, or a collection of items

Definition at line 345 of file QxNestedModel.h.