Define a fill color (Fill color) for the color of the line, and a line width (Width). Set the distribution of dashes and spacing, by entering the number of pixels that will be filled with color and the number of pixels for spacing between the dashes (Pattern).
Example, legend
Example, in map