Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QtCreator error: "legend" does not have members (M17)
peteispo last edited by peteispo
Using ChartView in QtCreator, I want to hide the default legends for the series I add to a chart so that I can display my own custom legend. For example, I have a ChartView with id "chartMilestones", so I put in the QML file
but QtCreator underlines the word legend in red and displays the error
"legend" does not have members (M17)
Is there something I need to add to avoid the error markers?
bnetz last edited by
I run into the same thing:
myChartView.legend.visible: falsedoes the trick and the legend gets hidden, the designer cant be used after that.
Did you find it out how to hide the legend without the error message?
igor_stravinsky last edited by
Just adding a "me too" for this bug.
I'm also getting a "Non-existent attached object" bug on the line of code that sets the legend's visibility. Perhaps that's related, but that causes an error in the QML compilation...
This is also tracked in https://bugreports.qt.io/browse/QTBUG-68470 . Please follow up from there.