# PathArc QML Type

Defines an arc with the given radius. More...

 Import Statement: import QtQuick

## Detailed Description

PathArc provides a simple way of specifying an arc that ends at a given position and uses the specified radius. It is modeled after the SVG elliptical arc command.

The following QML produces the path shown below: ```Path { startX: 100; startY: 0 PathArc { x: 0; y: 100 radiusX: 100; radiusY: 100 useLargeArc: true } }```

Note that a single PathArc cannot be used to specify a circle. Instead, you can use two PathArc elements, each specifying half of the circle.

## Property Documentation

Defines the radius of the arc.

The following QML demonstrates how different radius values can be used to change the shape of the arc: ```Path { startX: 0; startY: 100 PathArc { relativeX: 50; y: 100 radiusX: 25; radiusY: 15 } PathArc { relativeX: 50; y: 100 radiusX: 25; radiusY: 25 } PathArc { relativeX: 50; y: 100 radiusX: 25; radiusY: 50 } PathArc { relativeX: 50; y: 100 radiusX: 50; radiusY: 100 } }```

 relativeX : real relativeY : real

Defines the end point of the arc relative to its start.

If both a relative and absolute end position are specified for a single axis, the relative position will be used.

Relative and absolute positions can be mixed, for example it is valid to set a relative x and an absolute y.

 x : real y : real

Defines the end point of the arc.

 direction : enumeration

Defines the direction of the arc. Possible values are PathArc.Clockwise (default) and PathArc.Counterclockwise.

The following QML can produce either of the two illustrated arcs below by changing the value of direction. ```Path { startX: 50; startY: 50 PathArc { x: 150; y: 50 radiusX: 75; radiusY: 50 } }```

 useLargeArc : bool

Whether to use a large arc as defined by the arc points.

Given fixed start and end positions, radius, and direction, there are two possible arcs that can fit the data. useLargeArc is used to distinguish between these. For example, the following QML can produce either of the two illustrated arcs below by changing the value of useLargeArc. ```Path { startX: 0; startY: 100 PathArc { x: 100; y: 200 radiusX: 100; radiusY: 100 direction: PathArc.Clockwise } }```

The default value is false.

 xAxisRotation : real

Defines the rotation of the arc, in degrees. The default value is 0.

An arc is a section of circles or ellipses. Given the radius and the start and end points, there are two ellipses that connect the points. This property defines the rotation of the X axis of these ellipses.

Note: The value is only useful when the x and y radius differ, meaning the arc is a section of ellipses.

The following QML demonstrates how different radius values can be used to change the shape of the arc: ```Path { startX: 50; startY: 100 PathArc { x: 150; y: 100 radiusX: 50; radiusY: 20 xAxisRotation: 45 } }```
{"ft_lang_label":"__label__en","ft_lang_prob":0.76046544,"math_prob":0.9240317,"size":2708,"snap":"2022-27-2022-33","text_gpt3_token_len":628,"char_repetition_ratio":0.13535503,"word_repetition_ratio":0.11973392,"special_character_ratio":0.221935,"punctuation_ratio":0.16827853,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9517672,"pos_list":[0,1,2,3,4,5,6,7,8,9,10],"im_url_duplicate_count":[null,1,null,1,null,1,null,1,null,1,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-30T23:45:27Z\",\"WARC-Record-ID\":\"<urn:uuid:e71df035-1c75-4c76-b2cb-a5551abc4695>\",\"Content-Length\":\"32633\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:dff94c59-fe97-48c9-947e-3393ba3105be>\",\"WARC-Concurrent-To\":\"<urn:uuid:473eacda-6002-49a7-a4c5-22cf9cbc9fa8>\",\"WARC-IP-Address\":\"18.203.89.116\",\"WARC-Target-URI\":\"https://doc.qt.io/qt-6/qml-qtquick-patharc.html\",\"WARC-Payload-Digest\":\"sha1:SU5532DTRJTGOKLD7TBMAI2THULVRB4B\",\"WARC-Block-Digest\":\"sha1:DVFLRMDQPTM5AETJZUTS3YEDMIOTJY2M\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103915196.47_warc_CC-MAIN-20220630213820-20220701003820-00715.warc.gz\"}"}