how can I create a new pen style in qgis 2.16?

I want to create a pen style that looks like that - - . . - - . . (dash dash dot dot). This is not defined yet.

I tried to use two simple lines and two marker lines (1st option) or four marker lines (2nd option) or use custom dash pattern (3rd option) but all does not work fine. The problems are:

1st Option: This would work fine, if it is possible to use offest in x direction (offset is only defined in y direction) for simple lines. Is this possible?

2nd Option: This would work fine too, but there is no way to use an user defined rectangle as dash.

3rd Option I tried was use custom dash pattern. Is it possible to define dash (10px) space (5px) dash (10px) space (20px)?

Is there a way to define an dash dash dot dot line?

1 Answer 1


I think your option 3 is the best bet. I managed to create something that could be usable by adding together different dash/space lengths in the custom dash window. Doing this might require a fair bit of playing with though. This was done using 2.16.1

enter image description here

  • I tried this but it does not work. Now it does. Mysterious. I use one simple line and two marker lines (dots). Thank you.
    – Kosmo
    Oct 3, 2016 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.