Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Can't get roundJoin to work in qml.

Can't get roundJoin to work in qml.

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 154 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    bclark
    wrote on last edited by
    #1

    I'm trying to draw some lines in qml on a canvas. When I have an angle of less than 20 degrees or so formed by the vertices of a polygon, the resulting geometry has a very pointy spike on the end of the angle, which protrudes past the actual vertex of the polygon.

    I am trying to use RoundJoin to correct for that, but I can't seem to get the syntax right. There is no change to the behavior no matter what variations I try (unless I just create a syntax error).

    import QtQuick.Shapes
    
    ctx = getContext("2d");
    ctx.joinStyle = ShapePath.RoundJoin;
    

    Can anybody tell me what I'm doing wrong here?

    Thanks.
    bc

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved