On Tue, Oct 11, 2011 at 10:50 PM, Johan Paul <[email protected]> wrote: > Hi Jonathan, > > Q_INVOKABLEs are implements as slots in the C++ class, which means they > are just method calls in the end. AFAIK you should be allowed to give a > pointer to an integer if you so wish to a slot. Sounds like the runtime > error (segfault?) comes from something else. > > You cannot return values from Q_INVOKABLES as they are Qt slots which > cannot return values. >
No, that's not correct. You can return values from Q_INVOKABLEs and slots. You mark functions as 'slots' when they are candidates for 'connect'ing to as a signal/slot connection. You mark functions as 'invokables' when they are purely procedural functions (for eg. rowCount(), removeItems()). Girish _______________________________________________ Qt-qml mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt-qml
