228 bool initialized =
false;
256 if (!missingIdentifiers.
isEmpty())
257 qmlWarning(
q) <<
"The following application identifiers have not been set: " << missingIdentifiers;
290 const int offset =
mo->propertyOffset();
291 const int count =
mo->propertyCount();
309 qCDebug(lcSettings) <<
"QQmlSettings: load" <<
property.name() <<
"setting:" <<
currentValue <<
"default:" << previousValue;
319 static const int propertyChangedIndex =
mo->indexOfSlot(
"_q_propertyChanged()");
330 qCDebug(lcSettings) <<
"QQmlSettings: store" <<
it.key() <<
":" <<
it.value();
340 const int offset =
mo->propertyOffset();
341 const int count =
mo->propertyCount();
346 qCDebug(lcSettings) <<
"QQmlSettings: cache" <<
property.name() <<
":" <<
value;
357 if (
var.
metaType() == QMetaType::fromType<QJSValue>())
439 return d->instance()->value(
key, defaultValue);
456 qCDebug(lcSettings) <<
"QQmlSettings: setValue" <<
key <<
":" <<
value;
475 d->instance()->sync();
486 qmlWarning(
this) <<
"The Settings type from Qt.labs.settings is deprecated"
487 " and will be removed in a future release. Please use "
488 "the one from QtCore instead.";
494 if (
event->timerId() ==
d->timerId) {
505#include "moc_qqmlsettings_p.cpp"
QString organizationName
the name of the organization that wrote this application
QString applicationName
the name of this application
QString organizationDomain
the Internet domain of the organization that wrote this application
const_iterator constEnd() const noexcept
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the imaginary item after the ...
const_iterator constBegin() const noexcept
Returns a const \l{STL-style iterators}{STL-style iterator} pointing to the first item in the hash.
void clear() noexcept(std::is_nothrow_destructible< Node >::value)
Removes all items from the hash and frees up all memory used by it.
bool isEmpty() const noexcept
Returns true if the hash contains no items; otherwise returns false.
iterator insert(const Key &key, const T &value)
Inserts a new item with the key and a value of value.
The QJSValue class acts as a container for Qt/JavaScript data types.
bool isEmpty() const noexcept
void append(parameter_type t)
virtual void timerEvent(QTimerEvent *event)
This event handler can be reimplemented in a subclass to receive timer events for the object.
void killTimer(int id)
Kills the timer with timer identifier, id.
QPointer< QSettings > settings
QHash< const char *, QVariant > changedProperties
QQmlSettingsPrivate()=default
QVariant readProperty(const QMetaProperty &property) const
void _q_propertyChanged()
QSettings * instance() const
void setFileName(const QString &fileName)
void classBegin() override
Invoked after class creation, but before any properties have been set.
void timerEvent(QTimerEvent *event) override
This event handler can be reimplemented in a subclass to receive timer events for the object.
Q_INVOKABLE void sync()
\qmlmethod Settings::sync()
Q_INVOKABLE void setValue(const QString &key, const QVariant &value)
\qmlmethod Settings::setValue(string key, var value)
void setCategory(const QString &category)
QQmlSettings(QObject *parent=nullptr)
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Q_INVOKABLE QVariant value(const QString &key, const QVariant &defaultValue={}) const
\qmlmethod var Settings::value(string key, var defaultValue)
QString fileName() const
Returns the path where settings written using this QSettings object are stored.
void setValue(QAnyStringView key, const QVariant &value)
Sets the value of setting key to value.
QVariant value(QAnyStringView key, const QVariant &defaultValue) const
Returns the value for setting key.
void beginGroup(QAnyStringView prefix)
Appends prefix to the current group.
Status status() const
Returns a status code indicating the first error that was met by QSettings, or QSettings::NoError if ...
\macro QT_RESTRICTED_CAST_FROM_ASCII
static QString fromUtf8(QByteArrayView utf8)
This is an overloaded member function, provided for convenience. It differs from the above function o...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
bool isValid() const
Returns true if the storage type of this variant is not QMetaType::UnknownType; otherwise returns fal...
QMetaType metaType() const
const QLoggingCategory & category()
[1]
QSet< QString >::iterator it
static QT_BEGIN_NAMESPACE const int settingsWriteDelay
\qmlmodule Qt.labs.settings 1.0 \title Qt Labs Settings QML Types
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_LOGGING_CATEGORY(name,...)
#define qCDebug(category,...)
static bool contains(const QJsonArray &haystack, unsigned needle)
GLenum GLenum GLsizei count
GLenum GLuint GLintptr offset
GLdouble GLdouble GLdouble GLdouble q
Q_QML_EXPORT QQmlInfo qmlWarning(const QObject *me)
QLatin1StringView QLatin1String
static QVariant toVariant(const QV4::Value &value, QMetaType typeHint, bool createJSValueForObjectsAndSymbols, V4ObjectSet *visitedObjects)
QSettings settings("MySoft", "Star Runner")
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent