Problem with signals and slots when using libtorch library.
-
Hi all,
I am using Qt 5.9.5 with QTCreator 4.5.2 on ubuntu 18.04. I have problem with SLOTS and SIGNALS when using libtorch library:
1- If I add CONFIG+=no_keywords to the .pro file, which is (to my knowledge) required to use libtorch with Qt, I got errors with SLOTS and SIGNALS as shown below.

2- If I remove CONFIG+=no_keywords from the .pro file, I got errors with libtorch as shown below.

What would be the solution in this case ?
-
Hi all,
I am using Qt 5.9.5 with QTCreator 4.5.2 on ubuntu 18.04. I have problem with SLOTS and SIGNALS when using libtorch library:
1- If I add CONFIG+=no_keywords to the .pro file, which is (to my knowledge) required to use libtorch with Qt, I got errors with SLOTS and SIGNALS as shown below.

2- If I remove CONFIG+=no_keywords from the .pro file, I got errors with libtorch as shown below.

What would be the solution in this case ?
@ZINE If you use no_keywords then you have to use macros instead of signals/slots "key"-words like explained here: https://doc.qt.io/qt-6/signalsandslots.html