Quantcast
Channel: Active questions tagged qtquick2 - Stack Overflow
Viewing all articles
Browse latest Browse all 137

With QtQuick.Controls 1.4, how to prevent focus change when mouse goes on ComboBox or SpinBox Item?

$
0
0

I use a ListView and inside each Item of this ListView, I have a ComboBox or a SpinBox.

My problem is that when I want to scroll my ListView, if my mouse goes on a ComboBox or a SpinBox, the focus will change andthe scroll will now be on this Item instead of the list.

I would like that focus is set on these Item only if I click on them.

Code example:

import QtQuick.Controls 1.4ListView {    id: list    ScrollBar.vertical: ScrollBar {}    ...    model: DelegateModel {        id:delegate        model: myModel        delegate : Rectangle {             id: rect             ...             SpinBox {                 id: spin                  ...             }        }         }}

How could I proceed ?


Viewing all articles
Browse latest Browse all 137

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>