True dotted lines

• Feb 6, 2018 - 01:23

Although this has already been mentioned (https://musescore.org/en/node/114371),
is it in the cards to make the line attribute 'dotted' be truly dotted rather than
equivalent to small horizontal bars?

In other words as a question, what is the reasoning behind making the dotted attribute
of a line equivalent to small horizontal dashes dottedline.png
rather than being equivalent to actual dots as in truedottedlined.png ?

Attachment Size
dottedline.png 268 bytes
truedottedlined.png 234 bytes

Comments

In reply to by Jojo-Schmitz

Jojo's comment sparked interest into a quick QT search. If anyone is interested, the following linked document appears to describe QT's ability to use true dot-styled paths with lines.

https://doc.qt.io/archives/qt-4.8/qt.html#PenStyle-enum

Yet on closer inspection, indeed it might be merely small horizontal dashes provided! For example, zoom in on https://doc.qt.io/archives/qt-4.8/images/qpen-dot.png

Looking further into Qt and receiving response through their issue tracker that this is not an issue and is already implemented has resulted in seeing an easy way to implement this:

https://doc.qt.io/qt-5/qt.html#PenCapStyle-enum).

enum PenCapStyle { FlatCap, SquareCap, RoundCap }

Set the pen to "Qt::RoundCap" when switching to "Qt::DotLine" for "Dotted lines" and voila this should fix the problem. Issue tracker will have this here at https://musescore.org/en/node/270337

Do you still have an unanswered question? Please log in first to post your question.