Hi I connected bouttongroup0 (signal pressed (int)) to SLOT below. But the slot isn't called. In buttonGroup0 I inserted 3label an 3 spinbox and I arargnge them in a layout..
I'd like my slot recognze the buttonGruoupX from where the is started the change of value spinbox...thnaks.
Qt Code:
  1. void MainForm::lightPos(int val) {
  2. printf("lightPos\n");
  3. QButtonGroup* bgroup= (QButtonGroup*) sender();
  4. if (bgroup == this->buttonGroup0)
  5. printf("0 buttton group\n");
  6. }
To copy to clipboard, switch view to plain text mode