You could make a dashed line style but you can't apply a style to only some lines so you'd have to do something with multiple image exports that you later combine in an image editor.
There is a dashed line plugin from Smustard that could be used. I used to use it but since LayOut 3 came along, I don't use it anymore.