So, to be specific, convert to QString(s) if possible.

-Sivan

On Tue, Aug 24, 2010 at 2:49 PM, Sivan Greenberg <[email protected]> wrote:
> Hi,
>
> On Tue, Aug 24, 2010 at 2:43 PM, Matti Airas <[email protected]> wrote:
>> calls QLabel.setText with an int argument instead of the expected str. Now,
>> what's the expectation: should there be an error message (like now) or
>> should PySide automatically convert types to strs in such cases? If the
>> latter, which types? Built-in ones? Any types (using __repr__)?
>
> FWIW, I'd say convert to the corresponding Qt types represented from
> within Python, or the closest to the Qt type from the python
> built-ins. If that fails, then throw an exception ?
>
> -Sivan
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to