Selecting QComboBox in QTableWidget

后端 未结 4 1873
梦谈多话
梦谈多话 2021-02-13 02:30

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 03:05

    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.

提交回复
热议问题