Again with big red characters:

Don't change the code of the class generated by UIC. Subclass along the proper widget class and put additional code there.

There... I hope that makes it clear Oh... and I'm sure it's well explained in the book you mentioned.