<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Problem with signals and slots when using libtorch library.]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">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:<br />
<strong>1-</strong> If I add <strong>CONFIG+=no_keywords</strong> 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.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/ef0670c7-a1fd-482b-9ec3-7606e1bc6f51.png" alt="fdc10bc5-92ba-49ab-899d-a2d46edd1577-Screenshot from 2023-06-13 16-43-44.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>2-</strong> If I remove <strong>CONFIG+=no_keywords</strong> from the .pro file, I got errors with libtorch as shown below.<br />
<img src="https://ddgobkiprc33d.cloudfront.net/baef3e60-f875-4ae0-a2fd-0e623ebb0e1a.png" alt="58b6889b-a3a3-4c12-be43-5e346e054a11-Screenshot from 2023-06-13 16-41-07.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">What would be the solution in this case  ?</p>
]]></description><link>https://forum.qt.io/topic/145739/problem-with-signals-and-slots-when-using-libtorch-library</link><generator>RSS for Node</generator><lastBuildDate>Thu, 05 Nov 2026 14:40:28 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/145739.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 13 Jun 2023 08:51:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Problem with signals and slots when using libtorch library. on Tue, 13 Jun 2023 09:18:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/zine">@<bdi>ZINE</bdi></a> If you use no_keywords then you have to use macros instead of signals/slots "key"-words like explained here: <a href="https://doc.qt.io/qt-6/signalsandslots.html" target="_blank" rel="noopener noreferrer nofollow ugc">https://doc.qt.io/qt-6/signalsandslots.html</a></p>
]]></description><link>https://forum.qt.io/post/761272</link><guid isPermaLink="true">https://forum.qt.io/post/761272</guid><dc:creator><![CDATA[jsulm]]></dc:creator><pubDate>Tue, 13 Jun 2023 09:18:56 GMT</pubDate></item></channel></rss>