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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes