[SOLVED] currentIndex() in QTreeView
I have some dialog-based class which holds two members: QTreeView and model class based on QStandardItemModel. When i call function currentIndex() from tree-veiw I've got a crash, It happens whatever I have some items in my tree or have not. In model I realize now only data function. So, what can it be and what should I do first to solve this problem ?
Damn, my mistake I wrote this: @QTreeView * m_tbl = new QTreeView(this);@ but need to just initialize member.
@m_tbl = new QTreeView(this);@