[PyKDE] Passing a type through SIP
Phil Thompson
phil at riverbankcomputing.co.uk
Sun Jan 9 20:20:59 GMT 2005
On Sunday 09 January 2005 7:45 pm, James Lamanna wrote:
> Lets say I have the following in my .sip file:
>
> class Klass {
> ....stuff....
> WindowID id;
> ....stuff....
> };
>
> SIP wants to know what type WindowID is.
> I want to compile this on Windows, where WindowID is actually a HWND.
> However putting the following into the sip file does not work:
> typedef HWND WindowID;
>
> beecause SIP complains that it doesn't know about HWND.
> Is there any way to have SIP pass this type through unchanged so that
> the real compiler deals with it?
No, because SIP needs to deal with it as well, and so needs to know the real
underlying type.
Phil
More information about the PyQt
mailing list