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

QHashIterator cannot iterate over QMultiHash, contrary to documentation

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes