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

HorizontalHeaderView with plain JavaScript array model crashes on flick

    XMLWordPrintable

Details

    • All
    • 79b341268 (dev), d02351d8d (6.6), 82e47c8b3 (tqtc/lts-6.5), e9c91bd36 (tqtc/lts-6.2)

    Description

      HorizontalHeaderView crashes when flicking it horizontally (no matter the QQC2 style) if its model is a plain JavaScript array.

      import QtQuick
      import QtQuick.Controls as QQC2
      
      Window {
          width: 300
          height: 200
          visible: true
      
          QQC2.HorizontalHeaderView {
              anchors.top: parent.top
              anchors.left: parent.left
              anchors.right: parent.right
              model: ["One", "Two"]
          }
      }
      

      If 3 individual anchors are replaced with a single anchors.fill: parent then it crashes on start.

      Otherwise it looks and functions normally. For example, it can be resized by dragging a resize handle without crashing.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            santhoshkumar Santhosh Kumar Selvaraj
            ratijas ivan tkachenko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes