QHeaderView: get numeric column index by name
-
wrote on 14 Oct 2011, 12:10 last edited by
Hi,
is it possible to get the column index number by a column textual name? I don't find any functionality like this. -
wrote on 14 Oct 2011, 22:20 last edited by
You might want to get the underlying model with model() and search that with QAbstractItemModel::match().
If that does not help, you could iterate through the QAbstractItemModel::headerData() results.
1/2