TreeView steal focus of ListView scroll
Unsolved
QML and Qt Quick
-
I use a
ListView
and inside eachItem
of thisListView
, I have aTreeView
.My problem is that when I want to
scroll
myListView
, if mymouse
goes on theTreeView
, thefocus
will change and thescroll
will now be on theTreeView
instead of the list.I would like that focus is set on the
TreeView
only 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 ?