SHOW:
|
|
- or go back to the newest paste.
| 1 | QStringList list; | |
| 2 | QMap<QString, QString> parse_list; | |
| 3 | ||
| 4 | ----------------------------- | |
| 5 | ||
| 6 | for (int j = 0; j < list.size(); j++){
| |
| 7 | qDebug() << info_list[i]; | |
| 8 | ||
| 9 | QMapIterator<QString, QString> i(parse_list); | |
| 10 | while (i.hasNext()){
| |
| 11 | i.next(); | |
| 12 | } | |
| 13 | } | |
| 14 | ||
| 15 | все зачипенно | |
| 16 | ||
| 17 | ---------------------------- | |
| 18 | for (int j = 0; j < list.size(); j++){
| |
| 19 | ||
| 20 | QMapIterator<QString, QString> i(parse_list); | |
| 21 | while (i.hasNext()){
| |
| 22 | i.next(); | |
| 23 | } | |
| 24 | qDebug() << info_list[i]; | |
| 25 | } | |
| 26 | ||
| 27 | widget.cpp: В функции-члене «void Widget::test(QString)»: | |
| 28 | widget.cpp:505:28: ошибка: no match for «operator[]» in «info_list[i]» | |
| 29 | widget.cpp:505:28: замечание: candidates are: | |
| 30 | In file included from /usr/include/qt4/QtCore/qhash.h:48:0, | |
| 31 | from /usr/include/qt4/QtCore/qcache.h:45, | |
| 32 | from /usr/include/qt4/QtCore/QtCore:7, | |
| 33 | from /usr/include/qt4/QtNetwork/QtNetwork:3, | |
| 34 | from widget.h:4, | |
| 35 | from widget.cpp:1: | |
| 36 | /usr/include/qt4/QtCore/qlist.h:472:17: замечание: const T& QList<T>::operator[](int) const [with T = wearCarPartInfo] | |
| 37 | /usr/include/qt4/QtCore/qlist.h:472:17: замечание: no known conversion for argument 1 from «QMapIterator<QString, QString>» to «int» | |
| 38 | /usr/include/qt4/QtCore/qlist.h:476:11: замечание: T& QList<T>::operator[](int) [with T = wearCarPartInfo] | |
| 39 | /usr/include/qt4/QtCore/qlist.h:476:11: замечание: no known conversion for argument 1 from «QMapIterator<QString, QString>» to «int» |