61 QListIterator<float>
i(
list);
63 while (
i.hasPrevious())
64 float f =
i.previous();
77 QSetIterator<QString>
i(
set);
79 while (
i.hasPrevious())
87 QMutableListIterator<
float>
i(
list);
94 QMutableListIterator<float>
i(
list);
96 while (
i.hasPrevious())
97 float f =
i.previous();
102 QMutableListIterator<int>
i(
list);
103 while (
i.hasNext()) {
107 }
else if (
val == 0) {
116 QMutableSetIterator<
float>
i(
set);
122 QMutableListIterator<int>
i(
list);
123 while (
i.hasNext()) {
132 while (
i.hasNext()) {
141 QMutableListIterator<double>
i(
list);
142 while (
i.hasNext()) {
143 double val =
i.next();
144 i.setValue(std::sqrt(
val));
152 while (
i.hasNext()) {
154 qDebug() <<
i.key() <<
": " <<
i.value();
160 QMapIterator<int, QWidget *>
i(
map);
162 while (
i.hasPrevious()) {
164 qDebug() <<
i.key() <<
": " <<
i.value();
170 QMapIterator<int, QWidget *>
i(
map);
181 while (
i.hasNext()) {
183 qDebug() <<
i.key() <<
": " <<
i.value();
189 QMultiMapIterator<int, QWidget *>
i(
multimap);
191 while (
i.hasPrevious()) {
193 qDebug() <<
i.key() <<
": " <<
i.value();
199 QMultiMapIterator<int, QWidget *>
i(
multimap);
211 while (
i.hasNext()) {
213 qDebug() <<
i.key() <<
": " <<
i.value();
219 QHashIterator<int, QWidget *>
i(
hash);
231 while (
i.hasNext()) {
233 qDebug() <<
i.key() <<
": " <<
i.value();
239 QMutableMapIterator<int, QWidget *>
i(
map);
241 while (
i.hasPrevious()) {
243 qDebug() <<
i.key() <<
": " <<
i.value();
249 QMutableMapIterator<int, QWidget *>
i(
map);
258 QMutableMapIterator<QString, QString>
i(
map);
259 while (
i.hasNext()) {
261 if (
i.key() ==
i.value())
271 while (
i.hasNext()) {
273 qDebug() <<
i.key() <<
": " <<
i.value();
279 QMutableMultiMapIterator<int, QWidget *>
i(
multimap);
281 while (
i.hasPrevious()) {
283 qDebug() <<
i.key() <<
": " <<
i.value();
289 QMutableMultiMapIterator<int, QWidget *>
i(
multimap);
298 QMutableMultiMapIterator<QString, QString>
i(
multimap);
299 while (
i.hasNext()) {
301 if (
i.key() ==
i.value())
311 while (
i.hasNext()) {
313 qDebug() <<
i.key() <<
": " <<
i.value();
319 QMutableHashIterator<int, QWidget *>
i(
hash);
328 QMutableHashIterator<QString, QString>
i(
hash);
329 while (
i.hasNext()) {
331 if (
i.key() ==
i.value())
The QHash class is a template class that provides a hash-table-based dictionary.
The QString class provides a Unicode character string.
QMap< int, QWidget * > map
[23]
QHash< int, QWidget * > hash
[28multi]
QMultiMap< int, QWidget * > multimap
[28]
QMutableSetIterator< float > i(set)
[19]