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

CategoryModel is unintuitive

    XMLWordPrintable

Details

    • a4cc61fc30cb7dff15bf7ae2ff064530b40d72c5 (qt/qtlocation/5.12)

    Description

      The example given at http://doc.qt.io/qt-5/qml-qtlocation-categorymodel.html#details will not display anything by default. Instead, the update() method must be called (e.g. Component.onCompleted: update() must be added to the CategoryModel). This is unintuitive, and undocumented.

      Ideally, update() should not need to be called in this simple usecase (note: it appears this behavior was introduced in 72dd61d45aa05512d66eb154df150cb20b35ba8f). If it isn't possible to improve, this behavior should at minimum be documented.

      Attachments

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

        Activity

          People

            paangele Paolo Angelelli
            mbrasser Michael Brasser
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes