QDataWidgetMapper and multiple ModelIndex

Hi,

I have one question : i have created a tool based of this tutorial : https://youtu.be/Gil-dg3ajbA?t=556

On this tutorial, you can change for example an attribute on the light B :

But what i want is to do is to select the light A and B, and change the attribute, and the value will be changed for A and B. How can i do this ?
How QDataWidgetMapper will work with multiple selection ?

The problem is that my QDataWidgetMapper can have just one “setCurrentModelIndex”. But because i have multiple things selected, what is the solution please ?

Thank you,
Damien

you should be able to query which items are selected in your tree view, and set their values directly after retrieving the new value.

Removed post.