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

GridView.itemAt() fails with GridView.FlowTopToBottom

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.8
    • None
    • All

      if a GridView has the following properties:

          layoutDirection: Qt.RightToLeft
          flow: GridView.FlowTopToBottom

      the function gridView.itemAt(x, y) won't work anymore, at least with coordinates relative to the Gridview

       

      In the attached example, there is a gridview inside a mousearea, and onPositionChanged it does grid.itemAt(mouse.x, mouse.y) and it never finds an item when layoutDirection and Flow is set as such

        1. gridview.qml
          0.5 kB
          Marco Martin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            notmart Marco Martin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes