[PyQt] Can't declare template attribute with SIP

Phil Thompson phil at riverbankcomputing.com
Sat Aug 30 18:23:32 BST 2008

On Mon, 25 Aug 2008 11:58:12 +0200, "Arve Knudsen" <arve.knudsen at gmail.com>
> 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.

Fixed in tonight's snapshot - again, not heavily tested.


More information about the PyQt mailing list