Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-15587

Shape rendering in 2D view broken with ShapePath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QDS 4.7.2
    • 2D View
    • None

    Description

      When using a ShapePath, the 2D view sometimes renders the shape path incorrectly.

      This shape between the two squares should be a single white hourglass, but it's doubled.

      If I modify the paths it will re-render correctly:

       

      Shape code:

              Shape {
                  id: shape
                  anchors.centerIn: parent
                  rotation: -45
                  preferredRendererType: Shape.CurveRenderer            ShapePath {
                      strokeWidth: 1
                      fillColor: "#ffffff"                startX: 0
                      startY: 0                PathQuad {
                          relativeX: 0
                          relativeY: 46
                          relativeControlX: 23
                          relativeControlY: 23
                      }
                      PathLine {
                          relativeX: 40
                          relativeY: 0
                      }
                      PathQuad {
                          relativeX: 0
                          relativeY: -46
                          relativeControlX: -23
                          relativeControlY: -23
                      }
                  }
              } 

      Attachments

        1. image-2025-06-18-07-31-05-759.png
          7 kB
          Corey Pendleton
        2. image-2025-06-18-07-33-55-182.png
          4 kB
          Corey Pendleton
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thohartm Thomas Hartmann
            pendletonic Corey Pendleton
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes