使用QT和来自c程序的数据的GUI

时间:2021-08-15 17:03:09

I am quite new to C++ and C. And I am wondering how to import some data from C program and using it in order to draw a GUI in c++ ?

我是C ++和C的新手。我想知道如何从C程序导入一些数据并使用它来在c ++中绘制GUI?

what happen if the C program has its own Library? how to include it ?

如果C程序有自己的库会怎么样?如何包含它?

I am working with Linux platform.

我正在使用Linux平台。

Thanks

1 个解决方案

#1


0  

C++ is largely backwards compatible with C, so you can import the data from the C program "as is".

C ++主要向后兼容C,因此您可以“按原样”从C程序导入数据。

To link a C library to a QT application follow the instructions in the QMake manual to specify that the program should be linked.

要将C库链接到QT应用程序,请按照QMake手册中的说明指定程序应链接。

#1


0  

C++ is largely backwards compatible with C, so you can import the data from the C program "as is".

C ++主要向后兼容C,因此您可以“按原样”从C程序导入数据。

To link a C library to a QT application follow the instructions in the QMake manual to specify that the program should be linked.

要将C库链接到QT应用程序,请按照QMake手册中的说明指定程序应链接。