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. Unable to use signal slot

Unable to use signal slot

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 902 Views 2 Watching
  • 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
    Avtansh Sharma
    wrote on last edited by
    #1

    Hi,

    I have two classes. Both have Q_OBJECT macro. I want to use signal slot between them but there is always an error regarding moc.

    error: undefined reference to `ClassName::SendDataToGUIAA(QString)'

    K kshegunovK 2 Replies Last reply
    0
    • A Avtansh Sharma

      Hi,

      I have two classes. Both have Q_OBJECT macro. I want to use signal slot between them but there is always an error regarding moc.

      error: undefined reference to `ClassName::SendDataToGUIAA(QString)'

      K Offline
      K Offline
      koahnig
      wrote on last edited by
      #2

      @Avtansh-Sharma

      Best you show the code sections with definitions and implementations of signals and slots.
      What compiler are you using?

      Vote the answer(s) that helped you to solve your issue(s)

      1 Reply Last reply
      1
      • A Avtansh Sharma

        Hi,

        I have two classes. Both have Q_OBJECT macro. I want to use signal slot between them but there is always an error regarding moc.

        error: undefined reference to `ClassName::SendDataToGUIAA(QString)'

        kshegunovK Offline
        kshegunovK Offline
        kshegunov
        Moderators
        wrote on last edited by
        #3

        As @koahnig said, show us the code.

        Read and abide by the Qt Code of Conduct

        1 Reply Last reply
        1
        • A Offline
          A Offline
          Avtansh Sharma
          wrote on last edited by
          #4

          Hi,

          It is solved . I forgot to use explicit keyword.


          Regards,
          Avtansh

          1 Reply Last reply
          0

          • Login

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