Don't create a painter. Look at the arguments. It passes you a shared painter. On Apr 7, 2013 6:09 PM, "Tuan Nguyen" <[email protected]> wrote:
> I try to paint those GraphicsItem by QPainter, but i only get it works > when painting on a QWidget, > Here is the script > > https://gist.github.com/illunara/5329248 > > painter = QtGui.QPainter(self) > > I think i did something wrong with the PaintDevice? > > > On Sat, Apr 6, 2013 at 5:52 PM, Justin Israel <[email protected]>wrote: > >> No problem! >> On Apr 6, 2013 10:12 PM, "Tuan Nguyen" <[email protected]> wrote: >> >>> Ah....i think i misunderstand it. Sorry for a vague question. >>> >>> And as always, thank Justin :3 >>> >>> -- >>> 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 post to this group, send email to [email protected] >>> . >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "Python Programming for Autodesk Maya" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/python_inside_maya/KO-lFG2GYMY/unsubscribe?hl=en-US >> . >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> To post to this group, send email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > -- > 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 post to this group, send email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- 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 post to this group, send email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
