QSettings *sets = new QSettings(...);QVariant *variant = new QVariant;*variant = sets->value("color", Qt::green);QColor color = variant->value<QColor>();