Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-95332

QHashIterator cannot iterate over QMultiHash, contrary to documentation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2.0 Beta1
    • None

      QHashIterator used to be able to iterate over QMultiHash.
      The documentation still states that it is possilbe:
      https://doc-snapshots.qt.io/qt6-dev/qhashiterator.html

      However, it is not possible any more, you get errors like:

      error: no matching function for call to ‘QHashIterator<QString, QwtPlotCurve*>::QHashIterator(QMultiHash<QString, QwtPlotCurve*>&)’
      

      Please either:
      a) Fix QHashIterator so that it is able to iterate over QMultiHash
      or
      b) Adapt documentation and provide guidance in https://doc.qt.io/qt-6/qtcore-changes-qt6.html how to adapt existing code.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            andreasbuhr Andreas Buhr
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes