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. SIGNAL and SLOT....
Forum Updated to NodeBB v4.3 + New Features

SIGNAL and SLOT....

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 372 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.
  • B Offline
    B Offline
    bricedorsey
    wrote on last edited by
    #1

    Fehler1.PNG

    i get this error on Signal and SLOT. i can Build my programm, but i always have this error and when, the Connect() do not do what => so signal send to the slot

    1 Reply Last reply
    0
    • B Offline
      B Offline
      bricedorsey
      wrote on last edited by bricedorsey
      #5

      i have found an error in the header "qojectdefs.h" on row = 217...

      the line have to be change with this one:

      # define QLOCATION "\0" __FILE__ ":" QTOSTRING(__LINE__)
      

      otherwise, the Preprocessor __FILE__ can't be recognized....

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

        Your slot definition is wrong:

        • the class must not be there
        • you can't inject parameters the way you do it - you can only pass the parameters coming from the signal

        -> https://doc.qt.io/qt-5/signalsandslots.html

        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
        4
        • B Offline
          B Offline
          bricedorsey
          wrote on last edited by bricedorsey
          #3

          i have rewrite it correct.... i have already read this tutorial.

          My Problem is that, the SIGNAL and SLOT macro are not recognized.

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

            @bricedorsey said in SIGNAL and SLOT....:

            i havewrite it correct..

            Your connect statement is wrong - I already told you why.

            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
            • B Offline
              B Offline
              bricedorsey
              wrote on last edited by bricedorsey
              #5

              i have found an error in the header "qojectdefs.h" on row = 217...

              the line have to be change with this one:

              # define QLOCATION "\0" __FILE__ ":" QTOSTRING(__LINE__)
              

              otherwise, the Preprocessor __FILE__ can't be recognized....

              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