qt_add_repc_replicas
该命令于 Qt 6.2 版本中引入。
语法
qt_add_repc_replicas(<TARGET> rep_files)
qt6_add_repc_replicas(<TARGET> rep_files)描述
运行repc并根据给定的 `rep_files` 生成 `Qt Remote Objects ` 副本头文件。将生成的文件添加到 `<TARGET>` 中。
示例
qt6_add_repc_replicas(directconnectclient
simpleswitch.rep
)生成的文件将采用rep_<replica file name>_replica.h 的格式,在此示例中rep_simpleswitch_replica.h
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.