Good day. There is a problem with creating a valid loop to track value changes in a QTreewidgetItem. Actually it is necessary to realize the slot handler when you press the button, all values โโin the column (3) are scanned and saved in the ini file.
void sw_IKGM_settings::handler_pb_save_changes_to_ini() { QTreeWidgetItem* pitem; QStringList mylist; int i = 0; // sw_tree_item_my - ััััะบัััะฐ, tc - QList ััััะบััั foreach(sw_tree_item_t my, tc) { my = tc.at(i); QString str = my.item->text(3) str = mylist.at(i); }
When executing, the program terminates incorrectly. I can get the last element of the sheet using the .last () function, but I need to know all the changed values โโand not one.
tc
? Or do they still need to be defined? - gil9red