[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QMap and unsigned int
From:       Oliver Heyme <olihey () googlemail ! com>
Date:       2009-11-27 9:30:43
Message-ID: 62f3aed30911270130p4ff13597jf6e1a92891ee13fe () mail ! gmail ! com
[Download RAW message or body]

Okay, that was easy to fix!

Thanks for the quick reply,
Oli

On Fri, Nov 27, 2009 at 10:22 AM, Phil Thompson
<phil@riverbankcomputing.com> wrote:
> On Fri, 27 Nov 2009 10:08:36 +0100, Oliver Heyme <olihey@googlemail.com>
> wrote:
>> Hej,
>>
>> I am using (on Windows with Qt 4.6_rc) the latest versions of sip and
>> PyQt4.
>>
>> I having some trouble with the QMap.
>> On of my classes has the following method:
>>
>> const QMap<unsigned int,QColor>* materialList() const;
>>
>> When I am using this in the sip-file for the class I get the error:
>>
>> sip: LBBApplication::materialList() unsupported function return type -
>> provide %MethodCode and a C++ signature
>>
>> Weird thing is, if I change the "unsigned int" to "int" it works like a
>> charm.
>> My question is, is there a reason it fails when using "unsigned int"
>> or do I have to do something else?
>
> PyQt doesn't wrap that particular template signature (see qmap.sip). If you
> really need it then you'll have to include it in your own .sip files.
>
> Phil
>
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic