Quantcast
Channel: Using a QAbstractTableModel with a Qml TableView only displays the 1st column - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Frank Osterfeld for Using a QAbstractTableModel with a Qml...

The TableViewColumn API suggests that the data from the column is retrieved via roles instead of columns, i.e. "one", "two", and "three", while the column passed will be always 0. You return QVariant()...

View Article



Using a QAbstractTableModel with a Qml TableView only displays the 1st column

I'm trying to use a (class derived from) QAbstractTableModel with a Qml TableView;However, only the 1st column is displayed.The reason is QVariant MyModel::data(const QModelIndex &index, int role)...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images