Selecting QComboBox in QTableWidget

后端 未结 4 1279
情书的邮戳
情书的邮戳 2021-02-13 02:10

One cell in each row of a QTableWidget contains a combobox

for (each row in table ... ) {
   QComboBox* combo = new QComboBox();      
   table->setCellWidget         


        
4条回答
  •  醉梦人生
    2021-02-13 02:57

    I think you want to take a look at QSignalMapper. This sounds like a typical use case for that class i.e. you have a collection of objects where you hook up to the same signal on each but would like to know which object emitted the signal.

提交回复
热议问题