Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qpoint.h
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QPOINT_H
5#define QPOINT_H
6
7#include <QtCore/qcheckedint_impl.h>
8#include <QtCore/qcompare.h>
9#include <QtCore/qnamespace.h>
10#include <QtCore/qnumeric.h>
11
12#include <QtCore/q20type_traits.h>
13#include <QtCore/q23utility.h>
14
15#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
16struct CGPoint;
17#endif
18
20
21QT_ENABLE_P0846_SEMANTICS_FOR(get)
22
23class QDataStream;
24class QLine;
25class QPointF;
26class QRect;
27
28class QPoint
29{
30public:
31 constexpr QPoint() noexcept;
32 constexpr QPoint(int xpos, int ypos) noexcept;
33
34 constexpr inline bool isNull() const noexcept;
35
36 constexpr inline int x() const noexcept;
37 constexpr inline int y() const noexcept;
38 constexpr inline void setX(int x) noexcept;
39 constexpr inline void setY(int y) noexcept;
40
41 constexpr inline int manhattanLength() const;
42
43 constexpr QPoint transposed() const noexcept { return {yp, xp}; }
44
45 constexpr inline int &rx() noexcept;
46 constexpr inline int &ry() noexcept;
47
48 constexpr inline QPoint &operator+=(const QPoint &p);
49 constexpr inline QPoint &operator-=(const QPoint &p);
50
51 constexpr inline QPoint &operator*=(float factor);
52 constexpr inline QPoint &operator*=(double factor);
53 constexpr inline QPoint &operator*=(int factor);
54
55 constexpr inline QPoint &operator/=(qreal divisor);
56
57 constexpr static inline int dotProduct(const QPoint &p1, const QPoint &p2)
58 { return int(p1.xp * p2.xp + p1.yp * p2.yp); }
59
60private:
61 friend constexpr bool comparesEqual(const QPoint &p1, const QPoint &p2) noexcept
62 { return p1.xp == p2.xp && p1.yp == p2.yp; }
64 friend constexpr inline QPoint operator+(const QPoint &p1, const QPoint &p2) noexcept
65 { return QPoint(p1.xp + p2.xp, p1.yp + p2.yp); }
66 friend constexpr inline QPoint operator-(const QPoint &p1, const QPoint &p2) noexcept
67 { return QPoint(p1.xp - p2.xp, p1.yp - p2.yp); }
68 friend constexpr inline QPoint operator*(const QPoint &p, float factor)
70 friend constexpr inline QPoint operator*(const QPoint &p, double factor)
72 friend constexpr inline QPoint operator*(const QPoint &p, int factor) noexcept
73 { return QPoint(p.xp * factor, p.yp * factor); }
74 friend constexpr inline QPoint operator*(float factor, const QPoint &p)
76 friend constexpr inline QPoint operator*(double factor, const QPoint &p)
78 friend constexpr inline QPoint operator*(int factor, const QPoint &p) noexcept
79 { return QPoint(p.xp * factor, p.yp * factor); }
80 friend constexpr inline QPoint operator+(const QPoint &p) noexcept
81 { return p; }
82 friend constexpr inline QPoint operator-(const QPoint &p) noexcept
83 { return QPoint(-p.xp, -p.yp); }
84 friend constexpr inline QPoint operator/(const QPoint &p, qreal c)
85 {
88 }
89
90public:
91#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
92 [[nodiscard]] Q_CORE_EXPORT CGPoint toCGPoint() const noexcept;
93#endif
94 [[nodiscard]] constexpr inline QPointF toPointF() const noexcept;
95
96private:
98
99 friend class QRect;
100 friend class QLine;
101 constexpr QPoint(Representation xpos, Representation ypos) noexcept
102 : xp(xpos), yp(ypos) {}
103
104 Representation xp;
105 Representation yp;
106
107 template <std::size_t I,
108 typename P,
109 std::enable_if_t<(I < 2), bool> = true,
111 friend constexpr decltype(auto) get(P &&p) noexcept
112 {
113 if constexpr (I == 0)
114 return q23::forward_like<P>(p.xp).as_underlying();
115 else if constexpr (I == 1)
116 return q23::forward_like<P>(p.yp).as_underlying();
117 }
118};
119
121
122/*****************************************************************************
123 QPoint stream functions
124 *****************************************************************************/
125#ifndef QT_NO_DATASTREAM
126Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QPoint &);
127Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QPoint &);
128#endif
129
130/*****************************************************************************
131 QPoint inline functions
132 *****************************************************************************/
133
134constexpr inline QPoint::QPoint() noexcept : xp(0), yp(0) {}
135
136constexpr inline QPoint::QPoint(int xpos, int ypos) noexcept : xp(xpos), yp(ypos) {}
137
138constexpr inline bool QPoint::isNull() const noexcept
139{
140 return xp == 0 && yp == 0;
141}
142
143constexpr inline int QPoint::x() const noexcept
144{
145 return xp.value();
146}
147
148constexpr inline int QPoint::y() const noexcept
149{
150 return yp.value();
151}
152
153constexpr inline void QPoint::setX(int xpos) noexcept
154{
155 xp.setValue(xpos);
156}
157
158constexpr inline void QPoint::setY(int ypos) noexcept
159{
160 yp.setValue(ypos);
161}
162
163inline int constexpr QPoint::manhattanLength() const
164{
165 return (qAbs(xp) + qAbs(yp)).value();
166}
167
168constexpr inline int &QPoint::rx() noexcept
169{
170 return xp.as_underlying();
171}
172
173constexpr inline int &QPoint::ry() noexcept
174{
175 return yp.as_underlying();
176}
177
178constexpr inline QPoint &QPoint::operator+=(const QPoint &p)
179{
180 xp += p.xp;
181 yp += p.yp;
182 return *this;
183}
184
185constexpr inline QPoint &QPoint::operator-=(const QPoint &p)
186{
187 xp -= p.xp;
188 yp -= p.yp;
189 return *this;
190}
191
192constexpr inline QPoint &QPoint::operator*=(float factor)
193{
194 xp.setValue(QtPrivate::qSaturateRound(x() * factor));
195 yp.setValue(QtPrivate::qSaturateRound(y() * factor));
196 return *this;
197}
198
199constexpr inline QPoint &QPoint::operator*=(double factor)
200{
201 xp.setValue(QtPrivate::qSaturateRound(x() * factor));
202 yp.setValue(QtPrivate::qSaturateRound(y() * factor));
203 return *this;
204}
205
206constexpr inline QPoint &QPoint::operator*=(int factor)
207{
208 xp = xp * factor;
209 yp = yp * factor;
210 return *this;
211}
212
213constexpr inline QPoint &QPoint::operator/=(qreal c)
214{
215 Q_ASSERT(!qFuzzyIsNull(c));
216 xp.setValue(qRound(int(xp) / c));
217 yp.setValue(qRound(int(yp) / c));
218 return *this;
219}
220
221#ifndef QT_NO_DEBUG_STREAM
222Q_CORE_EXPORT QDebug operator<<(QDebug, const QPoint &);
223#endif
224
225Q_CORE_EXPORT size_t qHash(QPoint key, size_t seed = 0) noexcept;
226
227
228
229
231{
232public:
233 constexpr QPointF() noexcept;
234 constexpr QPointF(const QPoint &p) noexcept;
235 constexpr QPointF(qreal xpos, qreal ypos) noexcept;
236
237 constexpr inline qreal manhattanLength() const;
238
239 inline bool isNull() const noexcept;
240
241 constexpr inline qreal x() const noexcept;
242 constexpr inline qreal y() const noexcept;
243 constexpr inline void setX(qreal x) noexcept;
244 constexpr inline void setY(qreal y) noexcept;
245
246 constexpr QPointF transposed() const noexcept { return {yp, xp}; }
247
248 constexpr inline qreal &rx() noexcept;
249 constexpr inline qreal &ry() noexcept;
250
251 constexpr inline QPointF &operator+=(const QPointF &p);
252 constexpr inline QPointF &operator-=(const QPointF &p);
253 constexpr inline QPointF &operator*=(qreal c);
254 constexpr inline QPointF &operator/=(qreal c);
255
256 constexpr static inline qreal dotProduct(const QPointF &p1, const QPointF &p2)
257 {
258 return p1.xp * p2.xp + p1.yp * p2.yp;
259 }
260
261private:
262 QT_WARNING_PUSH
263 QT_WARNING_DISABLE_FLOAT_COMPARE
264 friend constexpr bool qFuzzyCompare(const QPointF &p1, const QPointF &p2) noexcept
265 {
266 return ((!p1.xp || !p2.xp) ? qFuzzyIsNull(p1.xp - p2.xp) : qFuzzyCompare(p1.xp, p2.xp))
267 && ((!p1.yp || !p2.yp) ? qFuzzyIsNull(p1.yp - p2.yp) : qFuzzyCompare(p1.yp, p2.yp));
268 }
270 friend constexpr bool qFuzzyIsNull(const QPointF &point) noexcept
271 {
273 }
274 friend constexpr bool comparesEqual(const QPointF &p1, const QPointF &p2) noexcept
275 { return qFuzzyCompare(p1, p2); }
277 friend constexpr bool comparesEqual(const QPointF &p1, const QPoint &p2) noexcept
278 { return comparesEqual(p1, p2.toPointF()); }
280 friend constexpr inline QPointF operator+(const QPointF &p1, const QPointF &p2)
281 { return QPointF(p1.xp + p2.xp, p1.yp + p2.yp); }
282 friend constexpr inline QPointF operator-(const QPointF &p1, const QPointF &p2)
283 { return QPointF(p1.xp - p2.xp, p1.yp - p2.yp); }
284 friend constexpr inline QPointF operator*(const QPointF &p, qreal c)
285 { return QPointF(p.xp * c, p.yp * c); }
286 friend constexpr inline QPointF operator*(qreal c, const QPointF &p)
287 { return QPointF(p.xp * c, p.yp * c); }
288 friend constexpr inline QPointF operator+(const QPointF &p)
289 { return p; }
290 friend constexpr inline QPointF operator-(const QPointF &p)
291 { return QPointF(-p.xp, -p.yp); }
292 friend constexpr inline QPointF operator/(const QPointF &p, qreal divisor)
293 {
294 Q_ASSERT(divisor < 0 || divisor > 0);
295 return QPointF(p.xp / divisor, p.yp / divisor);
296 }
297
298public:
299 constexpr QPoint toPoint() const;
300
301#if defined(Q_OS_DARWIN) || defined(Q_QDOC)
303 [[nodiscard]] Q_CORE_EXPORT CGPoint toCGPoint() const noexcept;
304#endif
305
306private:
307 friend class QTransform;
308
309 qreal xp;
310 qreal yp;
311
312 template <std::size_t I,
313 typename P,
314 std::enable_if_t<(I < 2), bool> = true,
316 friend constexpr decltype(auto) get(P &&p) noexcept
317 {
318 if constexpr (I == 0)
319 return q23::forward_like<P>(p.xp);
320 else if constexpr (I == 1)
321 return q23::forward_like<P>(p.yp);
322 }
323};
324
326
327size_t qHash(QPointF, size_t seed = 0) = delete;
328
329/*****************************************************************************
330 QPointF stream functions
331 *****************************************************************************/
332#ifndef QT_NO_DATASTREAM
333Q_CORE_EXPORT QDataStream &operator<<(QDataStream &, const QPointF &);
334Q_CORE_EXPORT QDataStream &operator>>(QDataStream &, QPointF &);
335#endif
336
337/*****************************************************************************
338 QPointF inline functions
339 *****************************************************************************/
340
341constexpr inline QPointF::QPointF() noexcept : xp(0), yp(0) { }
342
343constexpr inline QPointF::QPointF(qreal xpos, qreal ypos) noexcept : xp(xpos), yp(ypos) { }
344
345constexpr inline QPointF::QPointF(const QPoint &p) noexcept : xp(p.x()), yp(p.y()) { }
346
347constexpr inline qreal QPointF::manhattanLength() const
348{
349 return qAbs(x()) + qAbs(y());
350}
351
352inline bool QPointF::isNull() const noexcept
353{
354 return qIsNull(xp) && qIsNull(yp);
355}
356
357constexpr inline qreal QPointF::x() const noexcept
358{
359 return xp;
360}
361
362constexpr inline qreal QPointF::y() const noexcept
363{
364 return yp;
365}
366
367constexpr inline void QPointF::setX(qreal xpos) noexcept
368{
369 xp = xpos;
370}
371
372constexpr inline void QPointF::setY(qreal ypos) noexcept
373{
374 yp = ypos;
375}
376
377constexpr inline qreal &QPointF::rx() noexcept
378{
379 return xp;
380}
381
382constexpr inline qreal &QPointF::ry() noexcept
383{
384 return yp;
385}
386
387constexpr inline QPointF &QPointF::operator+=(const QPointF &p)
388{
389 xp += p.xp;
390 yp += p.yp;
391 return *this;
392}
393
394constexpr inline QPointF &QPointF::operator-=(const QPointF &p)
395{
396 xp -= p.xp;
397 yp -= p.yp;
398 return *this;
399}
400
401constexpr inline QPointF &QPointF::operator*=(qreal c)
402{
403 xp *= c;
404 yp *= c;
405 return *this;
406}
407
408constexpr inline QPointF &QPointF::operator/=(qreal divisor)
409{
410 Q_ASSERT(divisor > 0 || divisor < 0);
411 xp /= divisor;
412 yp /= divisor;
413 return *this;
414}
415
416constexpr QPointF QPoint::toPointF() const noexcept { return *this; }
417
418constexpr inline QPoint QPointF::toPoint() const
419{
420 return QPoint(QtPrivate::qSaturateRound(xp), QtPrivate::qSaturateRound(yp));
421}
422
423#ifndef QT_NO_DEBUG_STREAM
424Q_CORE_EXPORT QDebug operator<<(QDebug d, const QPointF &p);
425#endif
426
427QT_END_NAMESPACE
428
429/*****************************************************************************
430 QPoint/QPointF tuple protocol
431 *****************************************************************************/
432
433namespace std {
434 template <>
436 template <>
437 class tuple_element<0, QT_PREPEND_NAMESPACE(QPoint)> { public: using type = int; };
438 template <>
439 class tuple_element<1, QT_PREPEND_NAMESPACE(QPoint)> { public: using type = int; };
440
441 template <>
443 template <>
445 template <>
447}
448
449#endif // QPOINT_H
static bool readIniSection(const QSettingsKey &section, QByteArrayView data, ParsedSettingsMap *settingsMap)
void set(const QString &key, const QVariant &value) override
QStringList children(const QString &prefix, ChildSpec spec) const override
virtual void initAccess()
bool readIniFile(QByteArrayView data, UnparsedSettingsMap *unparsedIniSections)
bool isWritable() const override
QString fileName() const override
QConfFileSettingsPrivate(QSettings::Format format, QSettings::Scope scope, const QString &organization, const QString &application)
void remove(const QString &key) override
QConfFileSettingsPrivate(const QString &fileName, QSettings::Format format)
const QList< QConfFile * > & getConfFiles() const
static bool readIniLine(QByteArrayView data, qsizetype &dataPos, qsizetype &lineStart, qsizetype &lineLen, qsizetype &equalsPos)
std::optional< QVariant > get(const QString &key) const override
QString name
QAtomicInt ref
UnparsedSettingsMap unparsedIniSections
ParsedSettingsMap originalKeys
qint64 size
bool userPerms
static Q_AUTOTEST_EXPORT void clearCache()
QDateTime timeStamp
QMutex mutex
ParsedSettingsMap removedKeys
ParsedSettingsMap mergedKeyMap() const
static QConfFile * fromName(const QString &name, bool _userPerms)
bool isWritable() const
ParsedSettingsMap addedKeys
\inmodule QtCore\reentrant
Definition qdatastream.h:50
\inmodule QtCore
Definition qfile.h:96
\inmodule QtCore
Definition qlockfile.h:19
\inmodule QtCore\reentrant
Definition qpoint.h:231
constexpr qreal & ry() noexcept
Returns a reference to the y coordinate of this point.
Definition qpoint.h:382
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
Definition qpoint.h:357
constexpr qreal manhattanLength() const
Definition qpoint.h:347
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
Definition qpoint.h:362
constexpr QPointF & operator+=(const QPointF &p)
Adds the given point to this point and returns a reference to this point.
Definition qpoint.h:387
constexpr qreal & rx() noexcept
Returns a reference to the x coordinate of this point.
Definition qpoint.h:377
constexpr QPointF & operator*=(qreal c)
Multiplies this point's coordinates by the given finite factor, and returns a reference to this point...
Definition qpoint.h:401
constexpr QPointF transposed() const noexcept
Definition qpoint.h:246
constexpr void setY(qreal y) noexcept
Sets the y coordinate of this point to the given finite y coordinate.
Definition qpoint.h:372
constexpr QPointF & operator-=(const QPointF &p)
Subtracts the given point from this point and returns a reference to this point.
Definition qpoint.h:394
constexpr QPointF() noexcept
Constructs a null point, i.e.
Definition qpoint.h:341
constexpr QPointF(qreal xpos, qreal ypos) noexcept
Constructs a point with the given coordinates (xpos, ypos).
Definition qpoint.h:343
constexpr void setX(qreal x) noexcept
Sets the x coordinate of this point to the given finite x coordinate.
Definition qpoint.h:367
constexpr QPointF & operator/=(qreal c)
Divides both x and y by the given divisor, and returns a reference to this point.
Definition qpoint.h:408
constexpr QPointF(const QPoint &p) noexcept
Constructs a copy of the given point.
Definition qpoint.h:345
bool isNull() const noexcept
Returns true if both the x and y coordinates are set to 0.0 (ignoring the sign); otherwise returns fa...
Definition qpoint.h:352
static constexpr qreal dotProduct(const QPointF &p1, const QPointF &p2)
Definition qpoint.h:256
\inmodule QtCore\reentrant
Definition qpoint.h:29
constexpr bool isNull() const noexcept
Returns true if both the x and y coordinates are set to 0, otherwise returns false.
Definition qpoint.h:138
constexpr QPoint & operator*=(double factor)
Multiplies this point's coordinates by the given factor, and returns a reference to this point.
Definition qpoint.h:199
constexpr int & ry() noexcept
Returns a reference to the y coordinate of this point.
Definition qpoint.h:173
constexpr int & rx() noexcept
Returns a reference to the x coordinate of this point.
Definition qpoint.h:168
constexpr QPoint transposed() const noexcept
Definition qpoint.h:43
constexpr int x() const noexcept
Returns the x coordinate of this point.
Definition qpoint.h:143
constexpr void setY(int y) noexcept
Sets the y coordinate of this point to the given y coordinate.
Definition qpoint.h:158
constexpr QPoint & operator*=(int factor)
Multiplies this point's coordinates by the given factor, and returns a reference to this point.
Definition qpoint.h:206
constexpr QPoint & operator+=(const QPoint &p)
Adds the given point to this point and returns a reference to this point.
Definition qpoint.h:178
constexpr int manhattanLength() const
Returns the sum of the absolute values of x() and y(), traditionally known as the "Manhattan length" ...
Definition qpoint.h:163
constexpr QPoint(int xpos, int ypos) noexcept
Constructs a point with the given coordinates (xpos, ypos).
Definition qpoint.h:136
constexpr int y() const noexcept
Returns the y coordinate of this point.
Definition qpoint.h:148
static constexpr int dotProduct(const QPoint &p1, const QPoint &p2)
Definition qpoint.h:57
constexpr void setX(int x) noexcept
Sets the x coordinate of this point to the given x coordinate.
Definition qpoint.h:153
constexpr QPoint & operator*=(float factor)
Multiplies this point's coordinates by the given factor, and returns a reference to this point.
Definition qpoint.h:192
constexpr QPoint & operator-=(const QPoint &p)
Subtracts the given point from this point and returns a reference to this point.
Definition qpoint.h:185
constexpr QPoint & operator/=(qreal divisor)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qpoint.h:213
constexpr QPoint() noexcept
Constructs a null point, i.e.
Definition qpoint.h:134
friend constexpr bool comparesEqual(const QPoint &p1, const QPoint &p2) noexcept
Definition qpoint.h:61
QSettingsGroup(const QString &s, bool guessArraySize)
Definition qsettings_p.h:88
qsizetype num
Definition qsettings_p.h:99
QString toString() const
QString name() const
Definition qsettings_p.h:91
bool isArray() const
Definition qsettings_p.h:93
qsizetype arraySizeGuess() const
Definition qsettings_p.h:94
qsizetype maxNum
QSettingsGroup(const QString &s)
Definition qsettings_p.h:86
void setArrayIndex(qsizetype i)
Definition qsettings_p.h:95
qsizetype position
QSettingsIniKey(const QString &str, qsizetype pos=-1)
QSettingsKey(const QString &key, Qt::CaseSensitivity cs, qsizetype=-1)
Definition qsettings_p.h:48
QString originalCaseKey() const
Definition qsettings_p.h:51
qsizetype originalKeyPosition() const
Definition qsettings_p.h:52
\inmodule QtCore
Definition qsettings.h:31
QDataStream & readListBasedContainer(QDataStream &s, Container &c)
QDataStream & readAssociativeContainer(QDataStream &s, Container &c)
QDataStream & writeAssociativeContainer(QDataStream &s, const Container &c)
QDataStream & writeAssociativeMultiContainer(QDataStream &s, const Container &c)
QDataStream & writeSequentialContainer(QDataStream &s, const Container &c)
QDataStream & readArrayBasedContainer(QDataStream &s, Container &c)
static const char charTraits[256]
std::enable_if_t< std::is_enum< T >::value, QDataStream & > operator>>(QDataStream &s, T &t)
QDataStream & operator>>(QDataStream &s, QFlags< Enum > &e)
QDataStreamIfHasIStreamOperators< T1, T2 > operator>>(QDataStream &s, std::pair< T1, T2 > &p)
QDataStream & operator>>(QDataStream &s, QKeyCombination &combination)
QDataStreamIfHasIStreamOperatorsContainer< QHash< Key, T >, Key, T > operator>>(QDataStream &s, QHash< Key, T > &hash)
QDataStreamIfHasIStreamOperatorsContainer< QList< T >, T > operator>>(QDataStream &s, QList< T > &v)
Q_CORE_EXPORT QDebug operator<<(QDebug debug, QDir::Filters filters)
Definition qdir.cpp:2568
size_t qHash(QPointF, size_t seed=0)=delete
Q_DECLARE_TYPEINFO(QPointF, Q_PRIMITIVE_TYPE)
Q_DECLARE_TYPEINFO(QPoint, Q_PRIMITIVE_TYPE)
QMap< QString, QSettingsIniSection > IniMap
QList< QConfFileCustomFormat > CustomFormatVector
Definition qsettings.cpp:89
static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
static constexpr QChar sep
static Path getPath(QSettings::Format format, QSettings::Scope scope)
QMap< QSettingsIniKey, QVariant > IniKeyMap
static int pathHashKey(QSettings::Format format, QSettings::Scope scope)
static QString make_user_path()
static std::unique_lock< QBasicMutex > initDefaultPaths(std::unique_lock< QBasicMutex > locker)
static QString make_user_path_without_qstandard_paths()
QHash< QString, QConfFile * > ConfFileHash
Definition qsettings.cpp:75
QHash< int, Path > PathHash
Definition qsettings.cpp:88
Q_DECLARE_TYPEINFO(QSettingsIniSection, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO(QConfFileCustomFormat, Q_RELOCATABLE_TYPE)
Q_DECLARE_TYPEINFO(QSettingsIniKey, Q_RELOCATABLE_TYPE)
QCache< QString, QConfFile > ConfFileCache
Definition qsettings.cpp:76
#define FLUSH_CURRENT_SECTION()
static void iniChopTrailingSpaces(QString &str, qsizetype limit)
Q_DECLARE_TYPEINFO(QSettingsGroup, Q_RELOCATABLE_TYPE)
static const Qt::CaseSensitivity IniCaseSensitivity
Definition qsettings_p.h:43
Q_DECLARE_TYPEINFO(QSettingsKey, Q_RELOCATABLE_TYPE)
QMap< QSettingsKey, QByteArray > UnparsedSettingsMap
Definition qsettings_p.h:78
QMap< QSettingsKey, QVariant > ParsedSettingsMap
Definition qsettings_p.h:79
#define QT_QSETTINGS_ALWAYS_CASE_SENSITIVE_AND_FORGET_ORIGINAL_KEY_ORDER
Definition qsettings_p.h:36
QSettings settings("MyCompany", "MyApp")
[11]
Qt::CaseSensitivity caseSensitivity
Definition qsettings.cpp:71