Re: [PyKDE] Converions between QString and str in PyQt4

2006-01-23 Thread Phil Thompson
On Friday 20 January 2006 6:31 pm, Andreas Pakulat wrote: > Hi, > > I have an issue with conversion between QString and str. The problem I > have is as follows: > > create a QtCore.QVariant("true") and calling it's toBool() function > returns false, regardless of what the string actually contains >

[PyKDE] Converions between QString and str in PyQt4

2006-01-20 Thread Andreas Pakulat
Hi, I have an issue with conversion between QString and str. The problem I have is as follows: create a QtCore.QVariant("true") and calling it's toBool() function returns false, regardless of what the string actually contains Use an explicit QtCore.QString("true") constructor and everythings fin