Home > other >  Join in the QTableWidget QCheckBox
Join in the QTableWidget QCheckBox

Time:05-23

Everybody is good, side want to change a item in QTableWidget QCheckBox, can realize no, or say this changed the QTableWidgetItem to QCheckBox please give directions, thank you

CodePudding user response:

QTableWidgetItem * check=new QTableWidgetItem;
Check & gt; SetCheckState (Qt: : Unchecked);
The UI - & gt; Device_information - & gt; SetItem (row, col, check);//insert

  • Related