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

Shapes: Implement support for cosmetic pens

    XMLWordPrintable

Details

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

    Description

      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>
      

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-124638
          # Subject Branch Project Status CR V

          Activity

            People

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

              Dates

                Created:
                Updated:

                Gerrit Reviews