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

List:       pykde
Subject:    Re: [PyQt]
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2010-03-25 21:50:58
Message-ID: 82dec6b243248598c36c7ebe92c6497c () localhost
[Download RAW message or body]

On Wed, 24 Mar 2010 12:27:55 +0100, Olivier Fournier
<o.fournier@perigord.com> wrote:
> Phil Thompson a écrit :
>> On Tue, 23 Mar 2010 16:34:39 +0100, Olivier Fournier
>> <o.fournier@perigord.com> wrote:
>>   
>>> Hi,
>>>
>>> I would like to use the overloaded function  QXmlQuery.evaluateTo
(self,
>>>
>>> QString).
>>> I raise this Error:
>>> TypeError: arguments did not match any overloaded call:
>>>   QXmlQuery.evaluateTo(QXmlResultItems): argument 1 has unexpected type

>>> 'str'
>>>   QXmlQuery.evaluateTo(QAbstractXmlReceiver): argument 1 has unexpected

>>> type 'str'
>>>   QXmlQuery.evaluateTo(QIODevice): argument 1 has unexpected type 'str'
>>>
>>> python version: 3.1.1 (r311:74483, Aug 17 2009, 17:02:12) [MSC v.1500
32
>>>
>>> bit (Intel)]
>>> pyqt version : 4.6.1
>>>
>>> I don't understand why.
>>>     
>>
>> Mainly laziness on my part. I need to write some handwritten code to
deal
>> with immutable strings. I'll add...
>>
>> QXmlQuery.evaluateToString() -> str
>>
>> ...to tonight's snapshot. None will be returned if the evaluation fails.
>>
>> Phil
>>
>>   
> 
> It's OK for evaluateToString(), thank you.
> 
> but evaluateToStringList() returns None, Is it normal?

I don't know - it depends on the query. Do you have a test that should
work?

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