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

CategoryModel is unintuitive

XMLWordPrintable

    • a4cc61fc30cb7dff15bf7ae2ff064530b40d72c5 (qt/qtlocation/5.12)

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes