Answer the question
In order to leave comments, you need to log in
Does Qt map signal respond to everything at once?
QPushButton *pButton = new QPushButton("Запустить", ui->ViewData);
ui->ViewData->setCellWidget(i, 7, pButton);
connect(pButton,
SIGNAL(clicked()),
&ButtonSignalMapper,
SLOT(map()));
ButtonSignalMapper.setMapping(pButton, i);
connect(&ButtonSignalMapper,
SIGNAL(mapped(int)),
this,
SLOT(CellButtonClicked(int)));
i++;
Answer the question
In order to leave comments, you need to log in
If I understand correctly, then you call this connect in a loop
connect(&ButtonSignalMapper,
SIGNAL(mapped(int)),
this,
SLOT(CellButtonClicked(int)));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question