Hi all!

(PySide QTableView / QStandardItemModel question)

The behaviour that I want is that the data set on the last selected item in 
the table view will also be set on the previous selected items.
So my idea is to listen for the dataChanged signal and loop through the 
selected rows and set the data.

I realise that this will cause a loop, since I will trigger the dataChanged 
signal. What is the best way to approach this?
Subclass the QStandardItemModel and and implement the setData method to 
only emit the dataChanged when the user interacts with the item directly?

Thankful for any suggestions and tips!




-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/f7c91608-f455-46eb-9240-ea90c0eb76ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to