Advertisement
Guest User

bti

a guest
Oct 20th, 2012
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1.  
  2. QStringList list;
  3. QMap<QString, QString> parse_list;
  4.  
  5. -----------------------------
  6.  
  7. for (int j = 0; j < list.size(); j++){
  8. qDebug() << info_list[i];
  9.  
  10. QMapIterator<QString, QString> i(parse_list);
  11. while (i.hasNext()){
  12. i.next();
  13. }
  14. }
  15.  
  16. все зачипенно
  17.  
  18. ----------------------------
  19. for (int j = 0; j < list.size(); j++){
  20. qDebug() << info_list[i];
  21.  
  22. QMapIterator<QString, QString> i(parse_list);
  23. while (i.hasNext()){
  24. i.next();
  25. }
  26. qDebug() << info_list[i];
  27. }
  28.  
  29. widget.cpp: В функции-члене «void Widget::test(QString)»:
  30. widget.cpp:505:28: ошибка: no match for «operator[]» in «info_list[i]»
  31. widget.cpp:505:28: замечание: candidates are:
  32. In file included from /usr/include/qt4/QtCore/qhash.h:48:0,
  33. from /usr/include/qt4/QtCore/qcache.h:45,
  34. from /usr/include/qt4/QtCore/QtCore:7,
  35. from /usr/include/qt4/QtNetwork/QtNetwork:3,
  36. from widget.h:4,
  37. from widget.cpp:1:
  38. /usr/include/qt4/QtCore/qlist.h:472:17: замечание: const T& QList<T>::operator[](int) const [with T = wearCarPartInfo]
  39. /usr/include/qt4/QtCore/qlist.h:472:17: замечание: no known conversion for argument 1 from «QMapIterator<QString, QString>» to «int»
  40. /usr/include/qt4/QtCore/qlist.h:476:11: замечание: T& QList<T>::operator[](int) [with T = wearCarPartInfo]
  41. /usr/include/qt4/QtCore/qlist.h:476:11: замечание: no known conversion for argument 1 from «QMapIterator<QString, QString>» to «int»
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement