What is the best way of saving and restoring the contents of a QTableWidget into QSettings? Saving and restoring every single item would take a while, is there anything else?

Thanks in advance ~codeslicer