True dotted lines
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
rather than being equivalent to actual dots as in
?
Attachment | Size |
---|---|
dottedline.png | 268 bytes |
truedottedlined.png | 234 bytes |
Comments
see also https://musescore.org/en/node/187556
This probably is a restriction of the drawing primitives Qt provides
In reply to This probably is a… 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
In reply to A quick QT search, if anyone… by worldwideweary
Square dots, a bit of an oxymoron, but yes, that is the restriction I meant ;-)
In reply to Square dots, a bit of an… by Jojo-Schmitz
Paranoia: Maybe there's something funny going on around here that the QT team is trying to tell us?!
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