Quote Originally Posted by emp1953 View Post
In Line 5, I get a compiler error for view() are you casting view() to a (QTreeView *)

error: 'view' was not declared in this scope
QModelIndex index = ((QTreeView *)view())->currentIndex();
Well, view() is a valid method in a QComboBox subclass, so maybe you are not inside such a class?

Cheers,
_