Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator scan function-slot relationship failed
Forum Updated to NodeBB v4.3 + New Features

Qt Creator scan function-slot relationship failed

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
3 Posts 2 Posters 285 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.
  • P Offline
    P Offline
    pekoll123
    wrote on last edited by pekoll123
    #1

    pokerth ( https://github.com/pokerth/pokerth )
    can be compiled with a slightly older boost lib and
    by calling qmake and then make on Debian 11.
    Everything works as well.
    To make changes to the code I would like to use Code Completion and Syntax Highlighting
    etc etc. I would like to use an IDE + editor.
    And Qt Creator seems to be quite good. It displays the forms and control nicely.
    Only thing is that Qt Creator doesn't recognize already existing control function relationships.
    If I click on a button it creates a new function.
    But there is already an entry for it:
    For example the button "Fold" refers to
    gameTableImpl::pushButtonFoldClicked( bool checked ) ...
    But Qt Creator does not recognize this, although it is clearly stated in the source code.
    ...
    connect( pushButton_Fold, SIGNAL( clicked( bool ) ), this, SLOT( pushButtonFoldClicked( bool ) ) );
    ...
    How can I get Qt Creator to read in these already existing relationships ?

    JonBJ 1 Reply Last reply
    0
    • P pekoll123

      pokerth ( https://github.com/pokerth/pokerth )
      can be compiled with a slightly older boost lib and
      by calling qmake and then make on Debian 11.
      Everything works as well.
      To make changes to the code I would like to use Code Completion and Syntax Highlighting
      etc etc. I would like to use an IDE + editor.
      And Qt Creator seems to be quite good. It displays the forms and control nicely.
      Only thing is that Qt Creator doesn't recognize already existing control function relationships.
      If I click on a button it creates a new function.
      But there is already an entry for it:
      For example the button "Fold" refers to
      gameTableImpl::pushButtonFoldClicked( bool checked ) ...
      But Qt Creator does not recognize this, although it is clearly stated in the source code.
      ...
      connect( pushButton_Fold, SIGNAL( clicked( bool ) ), this, SLOT( pushButtonFoldClicked( bool ) ) );
      ...
      How can I get Qt Creator to read in these already existing relationships ?

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

      @pekoll123
      You would need to to create the connect()s inside Designer if you want to see them. Looks like this was not created as a connection in Designer. I believe if it had been the slot would be named something like on_pushButtonFoldClicked( bool ), that leading on_.

      Designer knowing about your connect()s really is hardly worth it though. It doesn't do much. You still have to write the code of the slot yourself in the .cpp file. Once you have used Qt for a while you will find the "auto-connect" feature used from Designer is no great help, and you are better off writing your own connect() statements in code anyway.

      P 1 Reply Last reply
      2
      • JonBJ JonB

        @pekoll123
        You would need to to create the connect()s inside Designer if you want to see them. Looks like this was not created as a connection in Designer. I believe if it had been the slot would be named something like on_pushButtonFoldClicked( bool ), that leading on_.

        Designer knowing about your connect()s really is hardly worth it though. It doesn't do much. You still have to write the code of the slot yourself in the .cpp file. Once you have used Qt for a while you will find the "auto-connect" feature used from Designer is no great help, and you are better off writing your own connect() statements in code anyway.

        P Offline
        P Offline
        pekoll123
        wrote on last edited by
        #3

        @JonB Good to know, thank you :-)

        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