H! On Wed, Apr 30, 2008 at 10:06 AM, Phil Thompson <[EMAIL PROTECTED]> wrote: > The current snapshot has been updated for the final Qt v4.4. I need to finish > the new support for QMetaObject.invokeMethod() and expect to release PyQt > v4.4 in a week or two. That's really great :) I am only wondering if the current Q_ARG behaviour is intendend that way (see example below).
Besides is it possible to invoke a method which returns an unwrapped C++ object? Getting an QObject would be ok, because I could use invokeMethod on that object too. I am asking because I am working as a GSoC project[1] on a Python plug-in in a C++ application. Currently I have my own invokeMethod implementation and I would love to get rid of it because it would greatly simplify the code and removes build dependencies on sip. BTW: Is there any reason why QObject.staticMetaObject() is not available? Regards Henning [1] http://code.google.com/soc/2008/scribus/appinfo.html?csaid=3A1BB82E4AA4DE3B from PyQt4.QtCore import * from PyQt4.QtGui import * import sys app = QApplication(sys.argv) lbl = QLabel(None) # Works: lbl.metaObject().invokeMethod(lbl, "setText", Q_ARG("QString", "Test")) ## Does not work: #lbl.metaObject().invokeMethod(lbl, "setText", Q_ARG("QString", QString("Test"))) lbl.show() app.exec_() _______________________________________________ PyQt mailing list PyQt@riverbankcomputing.com http://www.riverbankcomputing.com/mailman/listinfo/pyqt