i have a doubt in QT c++
Suppose this is the main.cpp
#include \"head.h\"
#include \"tail.h\"
int main()
{
head *head_obj = new head();
tail *ta
Well, assuming everything is as simple as you show it your really really abbriated code, it should be simple
connect( aTailInstance->tailButon, SIGNAL( clicked() ), aHeadInstance, SLOT( change_number() ) );
However, with the code you have shown here it is impossible to determine what kind of functionality you are after and it isn't clear exactly what you are asking.