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

QStringList exposed to QML as Object rather than Array

    XMLWordPrintable

Details

    Description

      Having a QStringList property and accessing it from QML results in a JS Object with numbered keys rather than an Array. Using a QVariantList works as expected.

      QStringList:

      {"0":"test","1":"foo"}

      QVariantList:

      ["test", "foo"]

      This seems to be a regression in Qt 5.4.1

      Attachments

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

        Activity

          People

            shausman Simon Hausmann
            broulik Kai Uwe Broulik
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes