Re: Problem with string -> int conversion ?



Madhusudan Singh wrote:

>> if the callback code is Python, you should be able to add a print
>> statement to the line just before the failing "int" call:
>>
>> print repr(signalrangestr), type(signalrangestr)
>> signalrange = int(signalrangestr)
>>
>> that print statement should be all you need to figure out what
>> signalrangestr really is.
>
> Thanks for the hint.
>
> I get :
>
> <__main__.qt.QString object at 0xb7c1a3ec> <class '__main__.qt.QString'>
>
> The question is :
>
> How do I convert a QString to a plain string ?

googling for "pyqt qstring" brought up this page:

http://www.opendocspublishing.com/pyqt/x2068.htm

</F>



.



Relevant Pages

  • Re: Problem with string -> int conversion ?
    ... > I am working with an application that I designed with the Designer> pyuic ... if the callback code is Python, you should be able to add a print ... signalrange = int ... that print statement should be all you need to figure out what ...
    (comp.lang.python)
  • Re: Problem with string -> int conversion ?
    ... Its python embedded in the designer workflow. ... pyuic extracts stuff from it, ... > signalrange = int ...
    (comp.lang.python)