This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
我试图在前端使用 qt 并在后端使用 C 来制作应用程序。在主窗口中,我创建了一个执行外部 C 代码的线程,但是当代码执行某些操作时,我需要与 qt 主窗口共享结构和值。我正在考虑使用共享内存和信号在 c 进程和主窗口之间传递这些信息。我在 qt wiki 上看到了 QSharedMemory lib,但我没有看到任何关于 c 代码和 qt 或类似代码之间的信号的信息。