qt_add_repc_merged
该命令于 Qt 6.2 版本中引入。
语法
qt_add_repc_merged(<TARGET> rep_files)
qt6_add_repc_merged(<TARGET> rep_files)说明
运行repc,并根据给定的rep_files (合并为单个头文件)生成Qt Remote Objects Replica和Qt Remote Objects 源头文件。将生成的文件添加到<TARGET> 中。
示例
qt6_add_repc_merged(directconnectexample
simpleswitch.rep
)生成的文件将采用rep_<replica file name>_merged.h 的形式,在此示例中为rep_simpleswitch_merged.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.