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

2012-04-30 Thread Ville M. Vainio
On Sun, Apr 29, 2012 at 5:47 PM, Phil Thompson 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 example it started wo

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" 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 for the Q

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 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

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

[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: === f

Re: [PyQt] pyqtSlot

2012-03-09 Thread Phil Thompson
On Fri, 9 Mar 2012 13:48:06 +0100, Kermit wrote: > hi all, > > i can't find solution for discover decorate slot function ( vs classic > function ) in pyQt > > it's possible ? It's probably easiest to use the Qt introspection stuff (QMetaObject) for the slot that the decorator creates. Phil ___

[PyQt] pyqtSlot

2012-03-09 Thread Kermit
hi all, i can't find solution for discover decorate slot function ( vs classic function ) in pyQt it's possible ? Kermit ___ PyQt mailing listPyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt