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

Values of BarSet QML type passed via Qt.point() are rounded unexpectedly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.2
    • 5.6.0
    • Charts
    • None
    • 48dadc97dcbbe39387e4daa04e208e1d59ae3050

    Description

      Setting the values property like described in http://doc.qt.io/QtCharts/qml-qtcharts-barset.html#values-prop leads to this bug.

      But the point QML basic type is converted to QPointF in C++ according to http://doc.qt.io/qt-5/qml-point.html

      Examples:

      BarSet {
          values: [Qt.point(0, 0.4)];
      }
      

      The value will be displayed as 0.

      BarSet {
          values: [Qt.point(0, 0.5)];
      }
      

      The value will be displayed as 1.

      Attachments

        For Gerrit Dashboard: QTBUG-52086
        # Subject Branch Project Status CR V

        Activity

          People

            e0348803 Miikka Heikkinen
            scientist_st Samuel Stirtzel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes