I've tried and tried to get this working. Frustratingly it seems to be a Maya QT bug. I wonder if any other PyQt / PySide guys out there have encountered this.
I've included an example to the module.
The idea.
Dynamic UI that finds classes that are used for tasks. Add tasks to a list, order them, set the default options, serialize them to a file or save them on a node in Maya. Basis of batch system for Maya.
Tasks are described in the tasks module.
taskList module if a manager class that handles the serialization into a table and the saving of the table.
demo implements a model / view to load /show edit etc data in the taskList instance.
I want a custom widget for each task class. Simple name matching to set the right widget for each row in the model.
In this demo I use a custom widget and a QDataWidgetMapper to set column 1 in model, Works fine in python 2.7 and Qt 4.8 but when run within Maya it will read the data in the model and set the initial state but not map the data back to the model when the checkBox is clicked.
I can even run with mayapy.exe from my IDE it works! Of course the maya's UI isnt up then
Can someone help? If it's a bug could you suggest a work around.