I am creating a print layout in QGIS. I created a rectangle and I would like to fill it with a line pattern, in such a way that there are exactly five repetitions of the pattern through its height. However, QGIS enables me to choose the spacing, not the number of repetitions, so I would like to use the field calculator to specify
height_of_this_rectangle / 4 as spacing.
The problem is that I don't understand how to access the height of the rectangle as a variable in the field calculator expression.