Commit 9e69b747 authored by EXT Arnaud Clère's avatar EXT Arnaud Clère


parent 094dae9d
......@@ -309,7 +309,7 @@ QJsonReader(&baIn).bind(QCborWriter(&baOut).value());
Last but not least, one can customize the bind operation to suit specific needs in various ways.
First, Providing in advance some `meta` data allows binding deep C++ data structures in custom ways for use with multi-dimensional Q...View classes:
QStandardItemModel tree, table, matrix;
QStandardItemModel matrix, flat, tree, table;
QModelWriter<>(&matrix).meta(qmSizes ,"4,3" ).bind(transform);
QModelWriter<>(& flat).sequence() .with(persons, flatten); // recursive bind function
QModelWriter<>(& tree).meta(qmChildren,"children" ).bind(persons);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment