Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Problem with signals and slots when using libtorch library.
Qt 6.12 LTS is out! See what's new in the release blog

Problem with signals and slots when using libtorch library.

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 2 Posters 763 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Z Offline
    Z Offline
    ZINE
    wrote on last edited by ZINE
    #1

    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.
    fdc10bc5-92ba-49ab-899d-a2d46edd1577-Screenshot from 2023-06-13 16-43-44.png

    2- If I remove CONFIG+=no_keywords from the .pro file, I got errors with libtorch as shown below.
    58b6889b-a3a3-4c12-be43-5e346e054a11-Screenshot from 2023-06-13 16-41-07.png

    What would be the solution in this case ?

    jsulmJ 1 Reply Last reply
    0
    • Z ZINE

      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.
      fdc10bc5-92ba-49ab-899d-a2d46edd1577-Screenshot from 2023-06-13 16-43-44.png

      2- If I remove CONFIG+=no_keywords from the .pro file, I got errors with libtorch as shown below.
      58b6889b-a3a3-4c12-be43-5e346e054a11-Screenshot from 2023-06-13 16-41-07.png

      What would be the solution in this case ?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by jsulm
      #2

      @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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt
      • Unsolved