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

Add QSet::toVector()

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Commits:
      c8aadc79fceac70ec18a3971d61c52930ef5f589 (qt/qtbase/5.15)

      Description

      I have code that fills a QSet to avoid duplicates, but returns a QVector. Currently I have to manually copy the QVector from the QSet, because QSet offers no QVector conversion function. Currently the only way to convert to a QVector using the existing API is to call set.toList().toVector().

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-71067
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              sgaist Samuel Gaist
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes