On Wednesday, May 7, 2014 6:37:02 PM UTC-4, Samuele Carcagno wrote:
>
> but when I try to convert it to a string with PySide I get: 
>
> julia> 
> QtCore["QDateTime"][:toString](QtCore["QDateTime"][:currentDateTime]()) 
> ERROR: type: apply: expected Function, got PyObject 
>

Maybe

   pycall(QtCore["QDateTime"]["toString"], PyAny, 
QtCore["QDateTime"][:currentDateTime]())

?   It could be the problem is that PyCall doesn't realize that toString is 
a function.   (In Python, so many object types can be callable, it's not 
possible to convert all of them automatically to Julia functions.   So 
sometimes in PyCall you have to use pycall or convert to the desired type 
manually via the convert function.)

Reply via email to