[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyKDE] QPixmap from a QVariant?
From: David Boddie <david () boddie ! org ! uk>
Date: 2006-10-30 22:30:34
Message-ID: 200610302330.35356.david () boddie ! org ! uk
[Download RAW message or body]
On Mon Oct 30 21:44:59 MET 200, Jan Ekholm wrote:
> if (v.canConvert<Qicon>())
> QPixmap p = v.value<QIcon>(v);
>
> How would one do that with PyQt? Any workarounds if it can't be cast to
> QIcon?
Does this work?
icon = QIcon(v)
David
_______________________________________________
PyKDE mailing list PyKDE@mats.imk.fraunhofer.de
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic