Since QColor can fit into QVariant, you should (not sure, didn't test) be able to just use QVariantList for your color settings and save the list directly:
Qt Code:
QSettings settings; QVariantList colorList = myColorList(); settings.setValue("currentColorVector", colorList);To copy to clipboard, switch view to plain text mode
Bookmarks