I would also Q_ASSERT(settings) here in case for some reason they aren't registered.  Same above if you do it.