221 void _q_propertyChanged();
226 bool initialized =
false;
249 missingIdentifiers.append(u
"organizationName"_s);
251 missingIdentifiers.append(u
"organizationDomain"_s);
253 missingIdentifiers.append(u
"applicationName"_s);
255 if (!missingIdentifiers.isEmpty())
256 qmlWarning(
q) <<
"The following application identifiers have not been set: " << missingIdentifiers;
291 const int offset =
mo->propertyOffset();
292 const int count =
mo->propertyCount();
310 qCDebug(lcQmlSettings) <<
"QQmlSettings: load" <<
property.name() <<
"setting:" <<
currentValue <<
"default:" << previousValue;
320 static const int propertyChangedIndex =
mo->indexOfSlot(
"_q_propertyChanged()");
331 qCDebug(lcQmlSettings) <<
"QQmlSettings: store" <<
it.key() <<
":" <<
it.value();
341 const int offset =
mo->propertyOffset();
342 const int count =
mo->propertyCount();
347 qCDebug(lcQmlSettings) <<
"QQmlSettings: cache" <<
property.name() <<
":" <<
value;
358 if (
var.
metaType() == QMetaType::fromType<QJSValue>())
443 return d->instance()->value(
key, defaultValue);
458 qCDebug(lcQmlSettings) <<
"QQmlSettings: setValue" <<
key <<
":" <<
value;
477 d->instance()->sync();
494 if (
event->timerId() !=
d->timerId)
503#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.
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
QVariant readProperty(const QMetaProperty &property) const
~QQmlSettingsPrivate()=default
void _q_propertyChanged()
QSettings * instance() const
void setLocation(const QUrl &location)
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 locationChanged(const QUrl &arg)
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)
void categoryChanged(const QString &arg)
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
static constexpr const int settingsWriteDelay
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)
static QT_BEGIN_NAMESPACE void init(QTextBoundaryFinder::BoundaryType type, QStringView str, QCharAttributes *attributes)
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