PDA

View Full Version : Q_RETURN_ARG and void problem



SABROG
16th June 2009, 12:19
I want call slot after return to event loop like this:



QMetaObject::invokeMethod(this, "filterChanged", Qt::QueuedConnection
, Q_RETURN_ARG(void, 0)
, Q_ARG(QString, regexp));


But Q_RETURN_ARG don't accept arguments.

How to write a right?
---
Sorry, i found how this work, just need remove return argument:


QMetaObject::invokeMethod(this, "filterChanged", Qt::QueuedConnection
, Q_ARG(QString, regexp));