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

Unexpected position of ListView on appending to an empty ListModel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • 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)

    Description

      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.

      Attachments

        1. menu_test.qml
          1 kB
        2. Menu.qml
          2 kB
        3. test_menu.png
          test_menu.png
          10 kB
        For Gerrit Dashboard: QTBUG-19675
        # Subject Branch Project Status CR V

        Activity

          People

            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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes