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

contentX of ListView is not updated when I change width of delegate contenItem with transition animation when LayoutMirroring.enabled is true

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.1.0 Beta2, 5.15
    • None
    • Linux/X11

    Description

      I made the delegate of the ListView using CheckBox then expand the width of that CheckBox when users click the checkbox.

      And I put the simple transition animation to width of CheckBox.

      However the contentX is not updated properly when I click the first item of the ListView with LayoutMirroring.enabled: true

      (i.e. the contentX should be -850 but it's -846 on below attached listview_test.qml)

      With LayoutMirroring.enabled: true, I found that onContentXChanged of ListView and onWidthChanged of CheckBox are out of sync.

       

      Attached listview_test.qml is the test QML file.

      Attachments

        1. actual_result.jpg
          actual_result.jpg
          9 kB
        2. expected_result.jpg
          expected_result.jpg
          10 kB
        3. listview_test.qml
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            seokhako Seokha Ko
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes