Try ```f.get<QString>("training-set",QString()).toLower();```