17 template<
typename T,
typename... Ts>
23 if constexpr (
sizeof... (Ts))
26 throw std::runtime_error {
"out of bounds tuple-like access" };
32 auto&& [...elems] = item;
43 QVariant
GetData (
int row,
int col,
int role)
const override 46 return QVariant::fromValue (this->
Items_.at (row));
48 if (role != Qt::DisplayRole)
QVariant GetData(int row, int col, int role) const override
QVariant GetFieldImpl(int idx, T &head, Ts &... tail)
static constexpr auto DataRole
QVariant GetField(const T &item, int idx)