41QMap<int, QWidget *>
map;
43for (
int i = 0;
i < 1000; ++
i) {
44 if (
map[
i] == okButton)
45 cout <<
"Found button at index " <<
i << endl;
51QMapIterator<QString, int>
i(
map);
54 cout <<
qPrintable(
i.key()) <<
": " <<
i.value() << endl;
61 cout <<
qPrintable(
i.key()) <<
": " <<
i.value() << endl;
73QMap<QString, int>
map;
76 cout <<
value << endl;
100 return e1.dateOfBirth() < e2.dateOfBirth();
108QMap<int, QString>
map;
122QMap<QString, int>
map;
126map.insert(
"December", 12);
129 cout <<
qPrintable(
i.key()) <<
": " <<
i.value() << endl;
141QMap<QString, int>
map;
157if (
i.key() ==
"Hello")
158 i.value() =
"Bonjour";
163QMap<QString, int>
map;
167map.insert(
"December", 12);
170 cout <<
qPrintable(
i.key()) <<
": " <<
i.value() << endl;
176 cout <<
"The key: " <<
it.key() << endl;
177 cout <<
"The value: " <<
qPrintable(
it.value()) << endl;
194QMap<QString, int>
map;
QString name() const
[5] //! [6]
\inmodule QtCore \reentrant
iterator insert(const Key &key, const T &value)
T value(const Key &key, const T &defaultValue=T()) const
iterator erase(const_iterator it)
bool contains(const Key &key) const
const_iterator cend() const
const_iterator cbegin() const
QList< Key > keys() const
iterator upperBound(const Key &key)
key_iterator keyBegin() const
key_iterator keyEnd() const
\macro QT_RESTRICTED_CAST_FROM_ASCII
qDeleteAll(list.begin(), list.end())
QSet< QString >::iterator it
qsizetype erase_if(QByteArray &ba, Predicate pred)
qsizetype erase(QByteArray &ba, const T &t)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLbitfield GLuint64 timeout
[4]
static bool operator<(const QSettingsIniKey &k1, const QSettingsIniKey &k2)
#define qPrintable(string)