I tried to get a signal from the example spreadsheet table that comes along with the qt 4.6 packages but nothing happens.
I added to the Spreadsheet class the function
void SpreadSheet::detectDoubleClick(int row, int column)
{ formulaInput->setText("a cell doubleclicked");
and connected it
connect(table, SIGNAL( cellDoubleClicked( int row, int column )),
this, SLOT(detectRowSelection(int row, int column)) );
}
The formulaInput QLineEdit field remains intact no matter how fiercely you click on the table of the spreadsheet class.
How could i pick up the clicks on the cells? Or more generally, how to detect clicks on QTableWidget cells?
teele
Bookmarks