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

Decide whether QV4::Sequence should be implicitly convertable to QStringList

    XMLWordPrintable

Details

    • 3d3ff946e (dev), d05efeb35 (6.8), f2431370a (dev), bdb1d21a0 (6.8)

    Description

      https://bugs.kde.org/show_bug.cgi?id=488558 shows a case where a QJsonArray was implicitly converted to QStringList via JavaScript Array in Qt 6.7. This doesn't work anymore because since https://codereview.qt-project.org/c/qt/qtdeclarative/+/561082 a QJsonArray is represented as QV4::Sequence, not as JS Array.

      So the underlying question is whether we should implicitly coerce array-likes to QStringList (via element-wise ToString). If so, this should work with all array-likes. If not, it should also not work for JavaScript arrays.

      Attachments

        Issue Links

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

          Activity

            People

              ulherman Ulf Hermann
              ulherman Ulf Hermann
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes