[PyQt] SIP Error with a %MethodCode

2013-03-17 Thread Vincent Vande Vyvre
Hi, I have, in C++, a method wich return an array of double and I've set a MethodCode in the .sip file to convert the array to a Python list of int. The array in the C++ code: - double lr[256]; for (int i = 0 ; i 256 ; i++) { float val =

Re: [PyQt] SIP Error with a %MethodCode

2013-03-17 Thread Phil Thompson
On Sun, 17 Mar 2013 10:10:00 +0100, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Hi, I have, in C++, a method wich return an array of double and I've set a MethodCode in the .sip file to convert the array to a Python list of int. The array in the C++ code:

[PyQt] empty container in QSettings: TypeError

2013-03-17 Thread Wilbert Berendsen
Hi all, When I store a list of strings (but happening to be empty) in QSettings (using QString and QVariant api 2): e.g.: paths = [] QSettings().setValue('paths', paths) Retrieving it yields a TypeError, instead of an empty list: QSettings().value('paths', [], 'QString') Traceback (most

Re: [PyQt] Symbol not found: _sipQtConnect (Qt5 and PyQt 4.10 on OSX, 32 bit)

2013-03-17 Thread Glenn Ramsey
On 16/03/13 21:56, Phil Thompson wrote: On Sat, 16 Mar 2013 14:16:08 +1300, Glenn Ramsey g...@componic.co.nz wrote: On 15/03/13 22:07, Phil Thompson wrote: On Fri, 15 Mar 2013 15:51:00 +1300, Glenn Ramsey g...@componic.co.nz wrote: Hi, I have built a 32 bit version of PyQt on OSX (10.8.2)

Re: [PyQt] Symbol not found: _sipQtConnect (Qt5 and PyQt 4.10 on OSX, 32 bit)

2013-03-17 Thread Phil Thompson
On Mon, 18 Mar 2013 08:17:18 +1300, Glenn Ramsey g...@componic.co.nz wrote: On 16/03/13 21:56, Phil Thompson wrote: On Sat, 16 Mar 2013 14:16:08 +1300, Glenn Ramsey g...@componic.co.nz wrote: On 15/03/13 22:07, Phil Thompson wrote: On Fri, 15 Mar 2013 15:51:00 +1300, Glenn Ramsey

Re: [PyQt] Symbol not found: _sipQtConnect (Qt5 and PyQt 4.10 on OSX, 32 bit)

2013-03-17 Thread Glenn Ramsey
On 18/03/13 11:18, Phil Thompson wrote: On Mon, 18 Mar 2013 08:17:18 +1300, Glenn Ramsey g...@componic.co.nz wrote: On 16/03/13 21:56, Phil Thompson wrote: On Sat, 16 Mar 2013 14:16:08 +1300, Glenn Ramsey g...@componic.co.nz wrote: On 15/03/13 22:07, Phil Thompson wrote: On Fri, 15 Mar 2013

Re: [PyQt] Symbol not found: _sipQtConnect (Qt5 and PyQt 4.10 on OSX, 32 bit)

2013-03-17 Thread Phil Thompson
On Mon, 18 Mar 2013 13:36:51 +1300, Glenn Ramsey g...@componic.co.nz wrote: On 18/03/13 11:18, Phil Thompson wrote: On Mon, 18 Mar 2013 08:17:18 +1300, Glenn Ramsey g...@componic.co.nz wrote: On 16/03/13 21:56, Phil Thompson wrote: On Sat, 16 Mar 2013 14:16:08 +1300, Glenn Ramsey