Hi all,

I have a QtableWidget defines as follows:

Qt Code:
  1. tableWidget = new QTableWidget(3, 4, this);
  2.  
  3. for (int row_j=0; row_j < 3; ++row_j)
  4. {
  5. for (int column_i=0; column_i < 4; column_i++)
  6. {
  7. item->setTextAlignment (Qt::AlignCenter);
  8. tableWidget->setItem(row_j, column_i, item);
  9. }
  10. }
  11.  
  12. tableWidget->item(0, 0)->setCheckState ( Qt::Checked ); <------
  13. tableWidget->item(1, 0)->setCheckState ( Qt::Checked ); <------
  14. tableWidget->item(2, 0)->setCheckState ( Qt::Checked ); <------
  15.  
  16. QGroupBox *frameQTable = new QGroupBox(tr(""));
  17.  
  18. QVBoxLayout *TableLayout = new QVBoxLayout(frameQTable);
  19. TableLayout->addWidget (tableWidget);
  20.  
  21. QVBoxLayout *layout = new QVBoxLayout;
  22. layout->addWidget(frameQTable);
  23. setLayout(layout);
To copy to clipboard, switch view to plain text mode 

Using the code as the shows by the arrows above, I put into the first cell of each row a CheckBox..

The Question is :
is there a way to emit a signal when the I click on the CheckBox?

So far the only signal is working for me is itemSelectionChanged ():

Qt Code:
  1. connect(tableWidget, SIGNAL(itemSelectionChanged () ),
  2. this, SIGNAL(completeChanged()));
To copy to clipboard, switch view to plain text mode 

that works indeed when I move to another item....
but not when I put the check..

Thank you for your kind reply..
Roberto