Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11471

Array Causes ListModel Errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 3.0.1
    • All Other Issues
    • None
    • Windows 8 64 bit, Qt 5.2.1, Qt Creator 3.0.1

    Description

      I have a ListModel called myListModel and the code

      var array1 = [1, 2, 3];
      myListModel.setProperty(row, "values", array1);

      causes the error message

      <Unknown File>: Can't create role for unsupported data type

      for a valid value of row while the code

      var array2 = [0, 0, 0];
      myListModel.append(

      {"values": array2}

      );

      causes a popup window to appear stating that my project's ".exe has stopped working."

      QTBUG-33564 is a related bug for dates.

      Attachments

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

        Activity

          People

            con Eike Ziller
            steveg SteveG
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes