Skip to main content
Associate II
May 14, 2025
Question

TouchGFX -> Create a curved line

  • May 14, 2025
  • 5 replies
  • 530 views

Hi,

which widget should I use to create a curved line?

If there is no widget,

what is the procedure to create a curved line?

Thank you

    This topic has been closed for replies.

    5 replies

    GaetanGodart
    ST Employee
    May 14, 2025

    Hello @AndreaTW ,

     

    You can use the canvas widget to do that, it should be enough (if it is not, please define more what you need).

    Please have a look at the documentation :

     

    Regards,

    Gaetan GodartSoftware engineer at ST (TouchGFX)
    AndreaTWAuthor
    Associate II
    May 14, 2025

    Thanks for the quick response GaetanGodart,

    The Canvas Widgets available in TouchGFX Designer are only:

    I need to create a curved line (example a parabolic line)

    Thank you

    GaetanGodart
    ST Employee
    May 19, 2025

    Hello @AndreaTW ,

     

    In the second link I provided you, we can see that there is a quadratic bezier line : https://support.touchgfx.com/docs/api/classes/classtouchgfx_1_1_canvas#function-quadraticbezierto

    Wouldn't that allow you do make curved lines?

     

    Regards,

    Gaetan GodartSoftware engineer at ST (TouchGFX)
    AndreaTWAuthor
    Associate II
    June 18, 2025

    Hello GaetanGodart,

    yes I managed to create the curve line.

    I used the CanvasWidget "Static Grapht" and the "addDataPoint" property.