Just a guess here, but the default constructor for QFont returns a valid font (the applications default font), whereas the default constructor for QColor initialises to an invalid color.
Just a guess here, but the default constructor for QFont returns a valid font (the applications default font), whereas the default constructor for QColor initialises to an invalid color.
Possible, but the example in the QSettings doc is:
QColor color = settings.value("DataPump/bgcolor").value<QColor>();
If the key doesn't exist, your still left with the default though.
Bookmarks