I'm surprised you even had to call that. Normally that all should happen
automatically. I wonder if you were painting outside of the rect area? If
you paint larger than the rect in one situation and then not in another,
you can get left over pixels not cleaned up until the surrounding areas get
repainted. Sometimes if you are using a larger pen width for an outline,
you have to compensate and shrink the rect.

Example:

penWidth=4
aRect=opts.rect.adjusted(2,2,-2,-2)

I have to find the doc on this but I remember it describing how the width
of a pen grows from the center, which means it can start extending beyond
the rect.
 On 10/09/2014 6:28 AM, "Bay" <[email protected]> wrote:

>
> Solved the issue, I was looking in the wrong place.
>
> Since the border drawing is trigged by a selection, I just set the
> itemselectionchange signal to signal an update to refresh the list widget,
> cleans the residue from the QPen.
>
> --
> 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/093c1332-28ba-4898-a798-cfffafaebfbe%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/093c1332-28ba-4898-a798-cfffafaebfbe%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPGFgA15qVtmwiLYOzQ8PMy185m9%3D76S3moKMh0t4MiRztpv2w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to