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

Using ChartView without importing QtQuick

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.7.1
    • Charts
    • None

    Description

      I have an example that uses ChartView without importing QtQuick and I get an error message followed by an abort.

      If I add the QtQuick import it works without any errors.

      ~ $ ~/Qt/5.7/gcc_64/bin/qmlscene whyCrash.qml 
      QQmlPropertyCache: QQuickItem has FastProperty class info, but has not installed property accessors
      fish: “~/Qt/5.7/gcc_64/bin/qmlscene wh…” terminated by signal SIGABRT (Abort)
      
      //import QtQuick 2.7
      import QtCharts 2.0
      
      
      ChartView {
          title: "Line"
          anchors.fill: parent
          antialiasing: true
      
          LineSeries {
              name: "LineSeries"
              XYPoint { x: 0; y: 0 }
              XYPoint { x: 1.1; y: 2.1 }
          }
      }
      

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            code Cody Scott
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes