Re: [PyQt] pyqtSlot, getting undefined return values when called from qml javascript

2012-05-01 Thread Ville M. Vainio
On Sun, Apr 29, 2012 at 5:47 PM, Phil Thompson p...@riverbankcomputing.com wrote: I have tried passing return value in the decorator (return=int...). Any clues where to look? Have you got a complete test that demonstrates the problem? Now I do, but when I went about to create that minimal

Re: [PyQt] pyqtSlot, getting undefined return values when called from qml javascript

2012-04-29 Thread Phil Thompson
On Sat, 28 Apr 2012 00:57:47 +0300, Ville M. Vainio vivai...@gmail.com wrote: I have a qml file invoking methods on a QObject subclass. I have used @pyqtSlot decorator to expose the methods as slots. I can see that the methods are run; however, the return values seem to be discarded. Code

Re: [PyQt] pyqtSlot, getting undefined return values when called from qml javascript

2012-04-28 Thread Ville M. Vainio
On Sat, Apr 28, 2012 at 1:10 AM, Andrew Suffield asuffi...@suffields.me.uk wrote: I have a qml file invoking methods on a QObject subclass. I have used @pyqtSlot decorator to expose the methods as slots. I can see that the methods are run; however, the return values seem to be discarded.

[PyQt] pyqtSlot, getting undefined return values when called from qml javascript

2012-04-27 Thread Ville M. Vainio
I have a qml file invoking methods on a QObject subclass. I have used @pyqtSlot decorator to expose the methods as slots. I can see that the methods are run; however, the return values seem to be discarded. Code for the QObject subclass (that I expose with setContextProperty) is like this: ===

Re: [PyQt] pyqtSlot, getting undefined return values when called from qml javascript

2012-04-27 Thread Andrew Suffield
On Sat, Apr 28, 2012 at 12:57:47AM +0300, Ville M. Vainio wrote: I have a qml file invoking methods on a QObject subclass. I have used @pyqtSlot decorator to expose the methods as slots. I can see that the methods are run; however, the return values seem to be discarded. Qt slots don't