[SOLVED] SIGNAL SLOT passing variable
-
Hello... I want to pass two integers through signals and slots to the function, but it gives me error...
Works
@connect(ui->P1C1Client, SIGNAL(clicked()), this, SLOT(test(int,int)));@Does not work
@connect(ui->P1C1Client, SIGNAL(clicked()), this, SLOT(test(1, 3)));@How it should look:
@connect(ui->P1C1Client, SIGNAL(clicked()), this, SLOT(test(1, 3)));
connect(ui->P1C1Client, SIGNAL(clicked()), this, SLOT(test(1, 5)));
connect(ui->P1C1Client, SIGNAL(clicked()), this, SLOT(test(1, 7)));
//75x
@I will have like 75 buttons and each button must pass specific numbers, so other functions know what to do... Since "easy" way does not work, could someone tell me how to achieve same thing without having thousands of functions...
-
Never mind... Found answer "here":http://qt-project.org/forums/viewthread/3715