QNodeEditor.graphics.edge.BezierEdgeGraphics#

class QNodeEditor.graphics.edge.BezierEdgeGraphics(edge: Edge, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#

Bases: EdgeGraphics

Edge graphics with a Bézier curve between edge start and end

Properties

Methods

create_path

Create a Bézier curve between the edge start and end point

__init__(edge: Edge, theme: ~typing.Type[~QNodeEditor.themes.theme.Theme] = <class 'QNodeEditor.themes.dark.DarkTheme'>)#

Create new edge graphics.

Parameters:
  • edge (Edge) – Edge these graphics are for

  • theme (Type[Theme], optional) – Theme for the edge graphics (default: DarkTheme)

create_path() QPainterPath#

Create a Bézier curve between the edge start and end point

Returns:

Bézier curve connecting start and end point

Return type:

QPainterPath