qt_add_repc_sources
该命令于 Qt 6.2 版本中引入。
语法
qt_add_repc_sources(<TARGET> rep_files)
qt6_add_repc_sources(<TARGET> rep_files)说明
运行repc,并根据给定的rep_files 生成Qt Remote Objects 源头文件。将生成的文件添加到<TARGET> 中。
示例
qt6_add_repc_sources(directconnectserver
simpleswitch.rep
)生成的文件将采用rep_<replica file name>_source.h 的格式,在此情况下rep_simpleswitch_source.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.