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

ChartView::margins is said to be read-only

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.6
    • Charts
    • None

    Description

      Building and running the attached project should yield this runtime error:

      20:42:44: Starting C:\Qt\Examples\Qt-6.6.0\charts\build-qmlchartsgallery-Desktop_Qt_6_6_0_MSVC2019_64bit-Debug\qmlchartsgallery.exe...
      QML debugging is enabled. Only use this in a safe environment.
      qrc:/qml/AreaSeries.qml:19:14: Invalid property assignment: "margins" is a read-only property 

      The documentation doesn't state that "margins" is readonly.
      https://doc.qt.io/qt-6/qml-qtcharts-chartview.html#margins-prop

      Attachments

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

        Activity

          People

            e0348803 Miikka Heikkinen
            mikio_hirai Mikio Hirai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes