I believe self.tableView.viewport().update()
Will do the trick if you need to force to view to refresh
On Jan 8, 2015 11:49 PM, "johan Borgström" wrote:
> Thanks Justin!
>
> This is what I did
>
>- Get the data from the QModelIndex that was edited
>- Block signals on the model
>- Loop
Thanks Justin!
This is what I did
- Get the data from the QModelIndex that was edited
- Block signals on the model
- Loop through and set the data on the selected rows
- "Unblock" signals
- It seems like the tableview updates fine, but if I want to force an
update do I call res
Hey gang,
since there has been some interest towards learning C/C++ (great
initiative!), I thought I'd share my latest release on the topic: a
template metaprogramming library.
Note that I do not recommand template metaprogramming to those just getting
started with C++ but it's good to keep in mi
Hi,
Depending on how you are using the view and expecting it to function, the
view usually needs to see the dataChanged signal to know that it should
refresh the display of items. You could however use the blockSignals(True)
method on your model, then perform the data updates, and then call
blockS
d'oh, I forgot the :
import pymel.core as pm
part... ;)
On Thursday, January 8, 2015 11:04:29 AM UTC-8, AK Eric wrote:
>
> Optionally you can cut out a lot of cruft using PyMel:
>
> def redWireColour():
> sel = pm.ls(selection=True)
> for item in sel:
> item.overrideEnabled.set(1
Optionally you can cut out a lot of cruft using PyMel:
def redWireColour():
sel = pm.ls(selection=True)
for item in sel:
item.overrideEnabled.set(1)
item.overrideColor.set(4)
One of the nice things it does is, if it can't find an attr on the
transform, it'll auto look to
thanks, that works perfectly. I dont quite understand all aspects of the
function but I'm sure I will in a month or two.
Interesting stuff, thanks again.
On Wednesday, January 7, 2015 7:05:25 PM UTC-5, Chris Gardner wrote:
>
> oh, sorry, you might need to replace the "cmds' in my function with
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