TreeView steal focus of ListView scroll
-
I use a
ListViewand inside eachItemof thisListView, I have aTreeView.My problem is that when I want to
scrollmyListView, if mymousegoes on theTreeView, thefocuswill change and thescrollwill now be on theTreeViewinstead of the list.I would like that focus is set on the
TreeViewonly if I click on it.Code example:
import QtQuick.Controls 1.4 ListView { id: list ScrollBar.vertical: ScrollBar {} ... model: DelegateModel { id:delegate model: myModel delegate : Rectangle { id: rect ... TreeView{ id: spin ... } } } }How could I proceed ?