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

Arve Knudsen arve.knudsen at gmail.com
Mon Aug 25 12:27:05 BST 2008


For the same class template I am also not able to refer to an
enumeration within that class. Example:

template<T>
class Value
{
public:
enum Source
{
    Default,
    User
};

   Source getSource();
};

SIP reacts by saying that Source is undefined.

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