Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-67050

PenStyle: Dotted Line is not quite "dotted" but miniaturized dashes. Should truly be circular.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • 4.8.0, 5.10.0 RC
    • GUI: Painting, Other
    • None
    • This seems applicable to all environments

    Description

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

      Re-Opened:

      Qt's PenStyle provides options for drawing types as expressed in the documentation. Specifically, Qt::DotLine is of interest. The actual style is more akin to non-dots and rather dashes--very small rectangles (squared edges rather than round edges). If it is desired to draw a line made of filled, rounded circles/dots, the PenStyle Qt::RoundCap is supplied, and yet it would seem a truly circular form is unavailable while only providing 'rounded-off' rectangular shapes. 

      As per Lars' comment to the first version of this issue, Qt::RoundCap is suggested to achieve true circular form, and yet it is not achieved. That is, the resulting form is elliptical in nature without an equal radius to provide a true circle. Size 0 width will default into 1px size, and anything above that seems to provide elongated ellipses rather than true circles, as if the shape is actually a rectangle with the addition of rounded-off edges. Again, as a question: how can a line be made of true circular dots? And if this can't be done, it would seem there should be a simple way to do so while using a line with a certain penstyle. 

       Any feedback much appreciated

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            worldwideweary worldwideweary
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes