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

ChartView - "legend" does not have members. (M17)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 5.11.0
    • Charts
    • None

    Description

      Hello,

      When i create a ChartView or PolarChartView and set the property legend.visible to false, i get errors. For example:

      Unable to find source-code formatter for language: qml. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      PolarChartView {
      ...
      legend.visible: false                      "legend" does not have members. (M17)
      ...
      }       
            
      ChartView {
      ...
      legend.visible: false                      "legend" does not have members. (M17)
      ...
      }
      

      But the code compiles and everything is fine in the app. Someone who can investigate and see why the QML-like JSLint complains? I think JSLint should not complain in this case.

      There are users who discuss it here:
      https://forum.qt.io/topic/81531/qtcreator-error-legend-does-not-have-members-m17

      Attachments

        Issue Links

          Activity

            People

              kkohne Kai Köhne
              pga4711 Philip Gabrielsson
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: