An extended function / feature for dynamic shaping of lines would be great. This function would turn a solid line into a dashed line using an expression.
For this, the design option "line type" would have to be extended so that the style can be defined dynamically with an expression.