[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pykde
Subject:    Re: [PyQt] QVariant bug in 4.4.3 and 4.4.4
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2009-01-27 11:35:14
Message-ID: fbbffd682070170408c732a7e952d673 () localhost
[Download RAW message or body]

On Sun, 25 Jan 2009 23:25:37 +0100, Albert Cervera i Areny
<albert@nan-tic.com> wrote:
> I've found a bug in both PyQt 4.4.3 and 4.4.4, though the bug differs in
> those 
> two versions it works correctly with 4.4.2.
> 
> Running the code below under 4.4.3 returns an empty list:
> 
> from PyQt4.QtCore import QVariant
> QVariant( [ QVariant( 1 ) ] ).toList()
> 
> Under 4.4.4 it returns a list with one element but:
> 
> from PyQt4.QtCore import QVariant
> QVariant( [ QVariant( 1 ) ] ).toList()[0].toInt()
> 
> Returns "(0, False)". Which is, of course, not correct and should be "(1,

> True)".

Thanks - this will be fixed in PyQt v4.5.

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