I made an list (array) that would count number of game finish. But if someone restarted game, length of list would reset.
As I know QSettings is dedicated to save and store data. I have read documentation but didn't help me enough.
For example I have a global array:
global finishcount
finishcount = []
How can I apply this to QSettings? So then I can append data on it without data loss after restart.
Should it look something like this?
from PyQt4 import QtGui, QtCore
global finishcount
finishcount = []
settings = QtCore.QSettings(self)
settings.setValue(finishcount, self)
How can I achieve this? Or can I make list in QSettings itself where I can append something?