I want call slot after return to event loop like this:
QMetaObject::invokeMethod(this,
"filterChanged", Qt
::QueuedConnection , Q_RETURN_ARG(void, 0)
QMetaObject::invokeMethod(this, "filterChanged", Qt::QueuedConnection
, Q_RETURN_ARG(void, 0)
, Q_ARG(QString, regexp));
To copy to clipboard, switch view to plain text mode
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
QMetaObject::invokeMethod(this, "filterChanged", Qt::QueuedConnection
, Q_ARG(QString, regexp));
To copy to clipboard, switch view to plain text mode
Bookmarks