Does Qt have a C interface?

后端 未结 7 731
孤街浪徒
孤街浪徒 2020-12-04 19:03

I\'ve found conflicting answers on the web - some say it does, some say it doesn\'t. I was unable to find any details in the official Qt documentation either. So does Qt hav

7条回答
  •  臣服心动
    2020-12-04 19:19

    Qt uses the Meta Object Compiler (MOC) to make the signal and slot magic work (e.g. make function callbacks based on user signal and slot definitions). So Qt isn’t actuall C++, but is really Qt’s own syntax, which is a lot like C++, but with signals and slots. This makes ‘external “c”’ useless.

提交回复
热议问题