Hello,

This is the first time I use Qt and I need an advice to perform the following task.
With this loop, I display a combobox on each column of the first row of my QTableWidget.
Qt Code:
  1. for (int col=0 ; col <= colonnes ; ++col)
  2. {
  3. QComboBox *moncombo = new QComboBox;
  4. moncombo->addItems(PL_variables);
  5. TableW->setCellWidget(0, col, moncombo);
  6. connect(moncombo, SIGNAL(activated(int)),this, SLOT(associate(int)));
  7. }
To copy to clipboard, switch view to plain text mode 
With connect(moncombo, SIGNAL(activated(int)),this, SLOT(associate(int))); I can transmet the index of the combo to the slot.

My problem is that I also have to transmet the number of the column on which the signal had been sent.
I guess I should to use the horizontalHeader function or something like that, but I don't really know how to do this.

Thanks