[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] Setting QVariant properties in construction
From: Phil Thompson <phil () riverbankcomputing ! com>
Date: 2011-10-10 11:41:07
Message-ID: 6c662d6761bab4ea6d6458ec69ee7e8d () localhost
[Download RAW message or body]
On Sat, 08 Oct 2011 15:33:12 +0100, Jeremy Sanders
<jeremy@jeremysanders.net> wrote:
> Hi - is this code supposed to work?
>
> w = QWidget()
> a = QPropertyAnimation(w, "maximumWidth", duration=1000,
> endValue=QVariant(1000))
>
> TypeError: unable to convert a Python 'QVariant' object to a C++
> 'QVariant'
> instance
>
> This is PyQt 4.8.3.
>
> Jeremy
Fixed in tonight's PyQt snapshot. Also the nicer endValue=1000 alternative
should work as well.
Thanks,
Phil
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic