Line pattern fill only along edge of polygon
I think you can use Geometry generator.
Following this post Geometry generator symbology by Matthias Kuhn, you can:
- Choose
Geometry generator
- Type in expression:
difference($geometry, buffer($geometry, -100))
- Set
Line pattern fill
I'm going to add another suggestion because this question has just popped up as a duplicate so might get some more traffic.
If you can stomach some processing it's possible to get exactly what you want by physically buffering rather than using the geometry editor as in the accepted answer. This should also do away with the issues identified in the comments above (I think).
- Run a fixed (or variable if you need different features to have a different hashing pattern) distance buffer on the features you want to symbolise, using a minus value to reduce the size of the feature.
- Run the 'Difference' tool from the Vector Geoprocessing menu to doughnut hole cut the original feature and drop this new dataset into the TOC above the original
- Symbolise the original dataset with a simple outline (and either no fill or whatever colour you want) and the new doughnut dataset with no outline and a hash fill
You can also uncheck the rotate marker option and tweak the line interval and offsets (sorry that my UI is only partially in English).