PDA

View Full Version : show messagebox



chinmayapadhi
17th August 2010, 12:31
HI,

I have a tablewidget. In one of the rows i have a pushbutton. when i click on it i want a messagebox to get displayed.

QPushButton* actionButton = new QPushButton(tr("Action"));
filesTable->setCellWidget(i , 3, actionButton);

connect(filesTable, SIGNAL(itemClicked(int,int)),
this, SLOT(showPathOfItem(int,int)));

But unable to launch the message box.
Any problem in the above code.

aamer4yu
17th August 2010, 13:35
itemClicked has the following signature -
void QTableWidget::itemClicked ( QTableWidgetItem * item )