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

[Reg 6.6.6 -> 6.7]: QML ListView don't update/respect model data/delegates X-position

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 6.7, 6.8
    • Quick: Other
    • None
    • Fedora Workstation 41 / Python 3.12 and 3.13
      Windows 11 / Python 3.12
    • Linux/X11, Windows

    Description

      Starting point:
      In my far more complex app I have a overview where a QML ListView with names/data are shown and there is an option to drag the items on the X-axis, to fix them in different columns. The position of the items can also be saved, and the data is saved/holding in a QAbstractListḾodel and (originally) exposed to QML from Python. The app was orignally written with Python 3.12 and PySide 6.6.1.

      Issue:

      https://youtu.be/K3MtL0wY9Gg?si=D1QIneRrmpFnhZVA

      While updating to PySide 6.8 I've realised the X-Axis calculation is not updated/respected and the ListView don't set the x value of the delegate to the correct value. Also resizing, max- and minimizing leads X to be set to 0, even tough the data in the model is unchanged and it should set the X-value correctly.

      My Investigation showed, it's also happening in PySide 6.7 and could only be repaired to original state by rolling back to PySide 6.6.x (Linux and Windows).

      I've created a minimal example, replicating the QML ListView with dragging on X-Axis.

      EDIT: minimal example behaves in Fedora Wortstation with Python 3.11 and PySide 6.6.3 as expected (Elements start on there position and window can be resized, maximized, minimized, and elements moved). Fails on the same system with Python 3.13 and PySide 6.8.1.

      EDIT 2: added a CPP file to move this to Qt bug section

      Attachments

        1. main.cpp
          0.4 kB
          Gabriel Böhme
        2. main.qml
          2 kB
          Gabriel Böhme
        3. qtbug133239.zip
          2 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            crmaurei Cristian Maureira-Fredes
            gabrielboehme Gabriel Böhme
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes