Hello!

When a QAbstractItemModel is used, how can I make it so that values are
sent
when the user chooses a value in a boolean combobox and not when the
combobox looses focus ?
My model has two columns, one "name" with a string and one "value" with
booleans.


​
It is very simple and derived from QAbstractItemModel. The view is a
QTreeView.

When I want to change a value, I double-clic on a value and then the Qt
selector with "True; False" as choices appears. However, in the model,
setData() is only called once the focus has been lost. I would like it to
be called as soon as a value is chosen. How could I do this ?

Thanks,

Jean-Michaël
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to