I have dealt a bunch with QSettings but it mainly revolved around saving/loading variables and stylesheets and such but I have just come across QTableWidget and I'm wondering if anyone has an idea on how to say begin saving the indexes or the tableWidget itself...
Basically I have a window which allows you to enter the name and select an icon for a new tablewidget item. From there if you click the "Add" button then the item is inserted into the table through the code...
example->tableWidget->setItem(newRow, 0, newItem);
newRow just increments from 0 to 3 since I maxed out the tableWidget at 4 items tops. All that works but I need to find a way to save/load the item via QSettings.
From reading the documentation I noticed "beginReadArray" and "beginWriteArray" and such but I'm just wondering on the opinions of the more advanced users of QT if there is an easier way of saving the items that are in the tablewidget perhaps a way as easy as saving/loading variables.
Example->Item One would be placed at (0,0), Item Two at (1,0) Item Three at (2,0) etc so I was just confused if I can save the tableWidget itself or have to somehow manually save the indexes and items.
Sorry if I confused anyone. Examples would help a ton! Thanks again!![]()
Bookmarks