Unsolved How to get column index from column name in QTreeview
-
Hi
I have a Qtreeview , I want to get column index if I input has column name in QTreeview -
Hi,
Can you explain your current situation with more details ?
-
@Qt-Enthusiast
YourQTreeView
has a model. The model has columns with names. (You may or may not also have usedQTreeView::setHeader()
, which uses aQHeaderView
.) Iterate (search) the model's columns for the one you want, that will give you the column index used in theQTreeView
. Is that what you mean?