Hi everyone!

I want to save std::vector<QColor> ColorVector in QSettings. Tried a simple way:

Qt Code:
  1. QSettings settings;
  2. settings.beginGroup("ColorConfigurationWidget");
  3. settings.setValue("currentColorVector", ColorVector);
  4. settings.endGroup();
To copy to clipboard, switch view to plain text mode 

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!