[PyQt] References returned from C++

2008-06-22 Thread Arve Knudsen
How does one normally treat references returned by SIP-wrapped C++ objects? I just determined a segmentation fault in my program resulted from an object first being obtained as a reference (in the C++ sense) from a C++ method, and then destroyed with the parent object. Does one normally keep in

Re: [PyQt] References returned from C++

2008-06-22 Thread Phil Thompson
On Sun, 22 Jun 2008 12:53:41 +0200, Arve Knudsen [EMAIL PROTECTED] wrote: How does one normally treat references returned by SIP-wrapped C++ objects? I just determined a segmentation fault in my program resulted from an object first being obtained as a reference (in the C++ sense) from a C++

Re: [PyQt] Re: Virtual methods and an extra reference

2008-06-22 Thread Phil Thompson
On Sun, 22 Jun 2008 02:04:20 + (UTC), Kevin Watters [EMAIL PROTECTED] wrote: The workaround makes my skin crawl. :| I hope you'll be able to whip up a fix, Kevin. I tried, but I screwed up attribute access in a way I didn't understand yet. Disabling the method cache altogether

Re: [PyQt] References returned from C++

2008-06-22 Thread Giovanni Bajo
On Sun, 2008-06-22 at 12:41 +0100, Phil Thompson wrote: On Sun, 22 Jun 2008 12:53:41 +0200, Arve Knudsen [EMAIL PROTECTED] wrote: How does one normally treat references returned by SIP-wrapped C++ objects? I just determined a segmentation fault in my program resulted from an object first

Re: [PyQt] References returned from C++

2008-06-22 Thread Detlev Offenbach
On Sonntag, 22. Juni 2008, Phil Thompson wrote: On Sun, 22 Jun 2008 12:53:41 +0200, Arve Knudsen [EMAIL PROTECTED] wrote: How does one normally treat references returned by SIP-wrapped C++ objects? I just determined a segmentation fault in my program resulted from an object first being

[PyQt] bug in pyuic4?

2008-06-22 Thread Gianni Valdambrini
Hi, There seems to be a problem with pyuic4 and generating the code when using a QListWidget with stylesheet font-family. The ui and generated py file are attached. Thanks in advance. ___ Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la

Re: [PyQt] References returned from C++

2008-06-22 Thread Phil Thompson
On Sun, 22 Jun 2008 14:12:45 +0200, Giovanni Bajo [EMAIL PROTECTED] wrote: On Sun, 2008-06-22 at 12:41 +0100, Phil Thompson wrote: On Sun, 22 Jun 2008 12:53:41 +0200, Arve Knudsen [EMAIL PROTECTED] wrote: How does one normally treat references returned by SIP-wrapped C++ objects? I just

Re: [PyQt] References returned from C++

2008-06-22 Thread Phil Thompson
On Sun, 22 Jun 2008 14:26:20 +0200, Detlev Offenbach [EMAIL PROTECTED] wrote: On Sonntag, 22. Juni 2008, Phil Thompson wrote: On Sun, 22 Jun 2008 12:53:41 +0200, Arve Knudsen [EMAIL PROTECTED] wrote: How does one normally treat references returned by SIP-wrapped C++ objects? I just

[PyQt] qvariant and python objects

2008-06-22 Thread Adam Tenderholt
I've created a QVariant object by passing a Python object (specifically, a list of numpy arrays) to its constructor, and I'm trying to have it read into a QDataStream object. Unfortunately, it doesn't work and gives me the error 'QVariant::save: unable to save type 428.'. The relevant code is