connect(button, SIGNAL(clicked()), this, SLOT(MySlot()));
ui->tableWidgetAll->setCellWidget(0, 2, button); // this will set the QPushButton on row 0, column 2, i.e 1st Row and 3rd Column in table
QPushButton * button = new QPushButton("Push Me to Emit Signal");
connect(button, SIGNAL(clicked()), this, SLOT(MySlot()));
ui->tableWidgetAll->setCellWidget(0, 2, button); // this will set the QPushButton on row 0, column 2, i.e 1st Row and 3rd Column in table
To copy to clipboard, switch view to plain text mode
Bookmarks