How do I set gridLinePen for CategoryAxis?
Unsolved
QML and Qt Quick
-
Do you guys know how to set the property gridLinePen for CategoryAxis?
I tried this but it gives me an error:
axisYRight: CategoryAxis {
id: firstSeriesBlueRange
labelsPosition: CategoryAxis.AxisLabelsPositionOnValue
min: yAxis.min_y
max: yAxis.max_y
labelsColor: "blue"
gridLineColor: "blue"
gridLinePen: {
width: 1.0
}
} -
@netpulsar no it isn't, at least according to the documentation:
https://doc.qt.io/qt-6/qml-qtcharts-abstractaxis.html
Is it possible that you might be getting confused with
QAbstractAxis
? That does have agridLinePen
property.