[PyQt] Re: Can't declare template attribute with SIP

Arve Knudsen arve.knudsen at gmail.com
Thu Aug 28 08:29:27 BST 2008


Phil: Are you able to fix this problem? Also, I've found out that
while SIP allows me to declare a member variable of a concrete type,
it isn't exposed in the Python wrapper.

Arve

On Mon, Aug 25, 2008 at 11:58 AM, Arve Knudsen <arve.knudsen at gmail.com> wrote:
> I have a class template (a struct really) which exposes an attribute
> variable, but it doesn't appear SIP (version 4.7.8-snapshot-20080817)
> supports this. Example:
>
> template<T>
> class Value
> {
> public:
>    T value;
> };
>
> SIP reacts by saying that "T is undefined". Probably an omission in
> SIP, since a corresponding getValue works? Also, specifying a concrete
> type for the attribute works.
>
> Arve
>


More information about the PyQt mailing list