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

Add writable variant iterables

    XMLWordPrintable

Details

    • All
    • 5c808073af5b8f1290602fcccf60666c9a3682f8 217a25a6bf59bb9ce0845267f46244fedd8bcaaa

    Description

      It is currently possible to any QList<T> stored as a QVariant using QSequentialIterable - the same is possible for QHash and QMap via QAssociativeIterable.

      It would be nice if we could also write to these containers, i.e. append/insert elements and change the value of exiting elements. An example of how this could look would be (made up names and values):

      QVariant variant(QList<int>({1, 2, 3}));
      auto writer = variant.value<QSequentialIterableWriter>();
      writer.append(QVariant(42));
      writer.insert(0, QVariant(10));
      writer.set(3, QVariant(0));
      

      Attachments

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

        Activity

          People

            ulherman Ulf Hermann
            SkyCoder Felix Barz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes