Mint87
24th January 2013, 11:22
Hi everyone!
I want to save std::vector<QColor> ColorVector in QSettings. Tried a simple way:
QSettings settings;
settings.beginGroup("ColorConfigurationWidget");
settings.setValue("currentColorVector", ColorVector);
settings.endGroup();
But QSettings doesn't work with vectors, I guess.. The size of ColorVector is not fixed.
Does anyone know how to handle this problem?
Thank you!
I want to save std::vector<QColor> ColorVector in QSettings. Tried a simple way:
QSettings settings;
settings.beginGroup("ColorConfigurationWidget");
settings.setValue("currentColorVector", ColorVector);
settings.endGroup();
But QSettings doesn't work with vectors, I guess.. The size of ColorVector is not fixed.
Does anyone know how to handle this problem?
Thank you!