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

Unexpected position of ListView on appending to an empty ListModel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.0.0
    • 4.7.3, 5.0.0
    • None
    • Ubuntu, Qt 4.7.4, Qt 4.8
    • a8d3802938df60a74990c2c915446061b047057d (qt/tqtc-qtdeclarative/5.12.0)

      Using the attached menu_test.qml shows two menus at the bottom of the application.
      The left menu clears the listmodel and appends four items. The view shows at one item above where is expected.
      The right menu is populated only by the ListElement. It shows as expected.

      This can be rectified by using menuView.positionViewAtIndex(0,ListView.Beginning); after appending the items, but this should not be necessary.

      Clicking on the application pull up both menus. Again, the left menu shows at one item above where is expected.

        1. menu_test.qml
          1 kB
        2. Menu.qml
          2 kB
        3. test_menu.png
          test_menu.png
          10 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            martjone Martin Jones (closed Nokia identity) (Inactive)
            shubina Natalia Shubina (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes