On Tue, 9 Dec 2008 16:50:41 +0300, "Борис Казаков" <boris.kazakov at gmail.com> wrote: > Hi, I'm using PyQt from Ubuntu repositories. Attached code segfaults. > Best regards, > Boris Try keeping a reference to the string returned by aim.tostring() until the end of the paintEvent(). This problem is covered in the PyQt Roadmap. Phil