From 7f9a59004a3a53cf8163c001f0af2a38259003de Mon Sep 17 00:00:00 2001 From: berrux_dev Date: Fri, 18 Sep 2026 17:45:16 +0200 Subject: [PATCH] Adapts GenericFtcImpl to rtiddsgen 7.7 generated types --- .../qt6-migrated-legatus/Lts/DDS/FTC/generic_ftc_impl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qt6-after/qt6-migrated-legatus/Lts/DDS/FTC/generic_ftc_impl.h b/qt6-after/qt6-migrated-legatus/Lts/DDS/FTC/generic_ftc_impl.h index 9e1627e62..aeb2ab06a 100644 --- a/qt6-after/qt6-migrated-legatus/Lts/DDS/FTC/generic_ftc_impl.h +++ b/qt6-after/qt6-migrated-legatus/Lts/DDS/FTC/generic_ftc_impl.h @@ -430,7 +430,10 @@ private: INFO_LOG(m_logger) << "#receiveReply for " << TopicNameHelper::replyTopicTypeName(); // QueuedConnection to make sure the data is handled in the correct Qt (main) thread request.replySlot.invoke(m_objToInform, Qt::QueuedConnection, - QArgument(TopicNameHelper::replyTopicTypeName(), reply.data()), // need to explicitly specify the registered typename + // Qt6: QMetaMethod::invoke takes QMetaMethodArgument; pass the + // registered topic type name like Q_ARG does, but with the + // runtime name (ReplyTopic is a template parameter). + QtPrivate::Invoke::argument(TopicNameHelper::replyTopicTypeName(), reply.data()), Q_ARG(int, request.uniqueId), Q_ARG(bool, !inProgress)); // finished yes/no }