Skip to main content
Associate II
May 14, 2025
Question

TouchGFX -> Create a curved line

  • May 14, 2025
  • 2 replies
  • 486 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

2 replies

GaetanGodart
Technical Moderator
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,

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
Technical Moderator
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,

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.