Re: Problem with string -> int conversion ?
- From: Madhusudan Singh <spammers-go-here@xxxxxxxxxxxx>
- Date: Wed, 31 Aug 2005 10:05:06 -0400
Fredrik Lundh wrote:
>> The code is :
>>
>> void Form3::getNPrange()
>> {
>
> what language is this?
Its python embedded in the designer workflow. pyuic extracts stuff from it,
and generates a python script from the ui.h file.
>
> 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 ?
.
- Follow-Ups:
- Re: Problem with string -> int conversion ?
- From: Fredrik Lundh
- Re: Problem with string -> int conversion ?
- References:
- Problem with string -> int conversion ?
- From: Madhusudan Singh
- Re: Problem with string -> int conversion ?
- From: Fredrik Lundh
- Problem with string -> int conversion ?
- Prev by Date: Re: new line
- Next by Date: socket.sslerror:(1, 'error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol')
- Previous by thread: Re: Problem with string -> int conversion ?
- Next by thread: Re: Problem with string -> int conversion ?
- Index(es):