template <typename T> void execAction(const QString &stored, const T &value);
template <typename T> void MyClass::execAction(const QString &stored, const T &value){...QMetaObject::invokeMethod(object*, QString("%1").arg(stored).toUtf8().constData(), Q_ARG(T, value));...}
execAction("slotCopyRecords", 1);
QMetaObject::invokeMethod: No such method MyClass::slotCopyRecords(T)
void LogisticMainWindow::execAction(const QString &stored, const QVariant &arg)
void LogisticMainWindow::execAction(const QString &stored, const QVariant &arg) {...QGenericArgument genericArgument; if (arg.isValid()){ genericArgument = QGenericArgument(arg.typeName(), arg.data()); }....
QMetaObject::invokeMethod(Object*, QString("%1").arg(stored).toUtf8().constData(), genericArgument);