Qt Creator scan function-slot relationship failed
-
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 ? -
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 ?@pekoll123
You would need to to create theconnect()
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 likeon_pushButtonFoldClicked( bool )
, that leadingon_
.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 ownconnect()
statements in code anyway. -
@pekoll123
You would need to to create theconnect()
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 likeon_pushButtonFoldClicked( bool )
, that leadingon_
.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 ownconnect()
statements in code anyway.