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

Shapes: Implement support for cosmetic pens

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • None
    • Quick: Shapes
    • None

      Cosmetic pen support is currently missing from Qt Quick Shapes itself. This is a feature gap when compare to QPainter and also means that the VectorImage does not correctly support SVGs which require cosmetic pens.

      Example:

      <svg viewBox="0 0 500 240">
        <!-- normal -->
        <path
          d="M10,20 L40,100 L39,200 z"
          stroke="black"
          stroke-width="2px"
          fill="none"></path>
      
        <!-- scaled -->
        <path
          transform="translate(100,0) scale(4,1)"
          d="M10,20 L40,100 L39,200 z"
          stroke="black"
          stroke-width="2px"
          fill="none"></path>
      
        <!-- fixed-->
        <path
          vector-effect="non-scaling-stroke"
          transform="translate(300, 0) scale(4, 1)"
          d="M10,20 L40,100 L39,200 z"
          stroke="black"
          stroke-width="2px"
          fill="none"></path>
      </svg>
      

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

            srutledg Shawn Rutledge
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes