QVariant variant(const QString &key) const
Retrieve a QVariant value.
T getOr(const QString &key, const T &defaultValue) const
bool containsType(const QString &key) const
bool remove(const QString &key)
bool contains(const QString &key) const
int count() const
Get the number of stored values.
std::optional< T > get(const QString &key) const
void set(const QString &key, T &&value)
QStringList keys() const
Get all keys in the context.
void setVariant(const QString &key, const QVariant &value)
Store a QVariant value.
bool containsVariant(const QString &key) const
Check if a variant key exists.