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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Duplicate
    • Affects Version/s: 5.11.0
    • Fix Version/s: None
    • Component/s: Charts
    • Labels:
      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

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

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes