On Monday 01 November 2010 19:15:40 velociraptor Genjix wrote: > Hey, > I'm porting some C++ code to PySide. > Original C++: > QMetaObject::invokeMethod(parent(), "itemClicked", Qt::DirectConnection, > Q_ARG(QListWidgetItem*, item(index.row())));
Sorry for the long delay It's simple: parent().itemClicked(Qt.DirectConnection, item(index.row()) Use the dynamic nature of python to help you, you have all the information you need to call the method, so just call it. > Python:QMetaObject.invokeMethod(self.parent(), 'itemClicked', > Qt.DirectConnection, SomethingSomething(QListWidgetItem, index.row()) That > last argument is of the type QGenericReturnArgument. How can I get that > macro in PySide? What should the line look like? Thanks Regards -- Hugo Parente Lima INdT - Instituto Nokia de Tecnologia
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PySide mailing list [email protected] http://lists.openbossa.org/listinfo/pyside
