Error:
error: no matching function for call to ‘QArgument<QString>::QArgument(
const char [8],
__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >,
std::__cxx11::basic_string<char> >::value_type&)’
At:
QMetaObject::invokeMethod(
mReceiver,
"setname",
Qt::QueuedConnection,
Q_ARG(QString, "test"));
Here is the error that I am facing when using QString as the parameter of Q_ARG() in QMetaObject::invokeMethod. So may I know is there any solution to this problem?