Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Emitting signal from another class
Forum Updated to NodeBB v4.3 + New Features

Emitting signal from another class

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 793 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.
  • A Offline
    A Offline
    Abhijeet Gurav
    wrote on last edited by
    #1

    Hi Folks,

    I am troubling with signals & slots functionality of Qt.
    I have to emit signal from one class where it is not connected with slot.
    and slot defined in other class where signal & slot is connected.
    In this case slot is not triggering. Please help me to solve this case.
    Thank you.
    Regards,
    Abhijeet.

    JonBJ 1 Reply Last reply
    0
    • A Abhijeet Gurav

      Hi Folks,

      I am troubling with signals & slots functionality of Qt.
      I have to emit signal from one class where it is not connected with slot.
      and slot defined in other class where signal & slot is connected.
      In this case slot is not triggering. Please help me to solve this case.
      Thank you.
      Regards,
      Abhijeet.

      JonBJ Offline
      JonBJ Offline
      JonB
      wrote on last edited by
      #2

      @Abhijeet-Gurav
      This is not the best place to put this post. It should just be in General and Desktop.

      This should work fine. Do the connect() where the slot is defined. All should work, show minimal code if not.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Abhijeet Gurav
        wrote on last edited by
        #3

        Ok JonB. Is it possible now to take this post in General and Desktop?
        Please check my code below.

        93f85ccd-33ae-410f-bc89-6fd9e668d5a0-image.png
        eb540660-124c-4dc0-9582-217e969743c2-image.png
        5f205ba8-8d94-470f-92ce-8c3e01813efa-image.png
        5f5dd64c-da1d-461d-b890-f71d6e0579b3-image.png
        3977067b-29b1-4b31-9114-73db0e9180dc-image.png
        21652173-817b-481e-b76b-9dba671d7646-image.png

        1 Reply Last reply
        0
        • Christian EhrlicherC Offline
          Christian EhrlicherC Offline
          Christian Ehrlicher
          Lifetime Qt Champion
          wrote on last edited by
          #4

          You're aware that the member A aEmit and A o_a are two different instances of the same class?
          Please go and get a basic c++ book and learn at least the basics of c++ before starting fiddling around with Qt...

          Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
          Visit the Qt Academy at https://academy.qt.io/catalog

          1 Reply Last reply
          1

          • Login

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