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

Regression Qt 5.9 to 5.12: Arithmetic exception related to bindings

    XMLWordPrintable

Details

    • Linux/Wayland, Linux/Other display system
    • 78787011651692b64bef19f6bec03d0dbf390e18 (qt/qtdeclarative/5.12)

    Description

      The following example crashes with Qt 5.12.2 caused by an arithmetic exception
      but works well with Qt 5.9.7

      import QtQuick 2.9
      import QtQuick.Window 2.2
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          ListView {
              id: listView
              anchors.fill: parent
          }
      
          property int myYPosition: listView.visibleArea.yPosition
          property int myContentHeight: listView.contentHeight
      
          property int myResult: myYPosition / myContentHeight
      }
      

      Attachments

        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
            rainmaker rainmaker
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes