Skip to content
Mark Janes edited this page Jul 30, 2018 · 1 revision

FrameRetrace uses standard C++/QML for UI. A C++ "model" is created for each QML visualization. The model provides data for QML via properties and invokable methods. The QML "View" is implemented in javascript, and can access the properties as members to the model.

Models are implemented in retrace/daemon/ui Views are implemented in retrace/daemon/ui/qml

ApiControl.qml is the view for the API log tab in FrameRetrace. The model is in glframe_api_model.hpp. The model is bound to the qml "apiModel" property, and calls to the model are made to the model in qml, eg:

apiModel.filter(substring)

The filter command is implemented in C++ as an invokable:

Q_INVOKABLE void filter(QString substring);

Clone this wiki locally