Home | All Classes | Main Classes | Annotated | Grouped Classes | Functions |

# Compatibility Members for QPointArray

The following class members are part of the Qt 3 compatibility layer. They are provided to help you port old code to Qt 4. We strongly advise against using them in new code.

QPointArray class reference

### Public Functions

- QPointArray copy () const
- QPointArray cubicBezier () const
- bool isNull ()
- void makeArc ( int x, int y, int w, int h, int a1, int a2 )
- void makeArc ( int x, int y, int w, int h, int a1, int a2, const QMatrix & xf )
- void makeEllipse ( int x, int y, int w, int h )

## Member Function Documentation

### QPointArray QPointArray::copy () const

Use simple assignment instead.

### QPointArray QPointArray::cubicBezier () const

Returns the Bezier points for the four control points in this array.

### bool QPointArray::isNull ()

Use isEmpty() instead.

### void QPointArray::makeArc ( int x, int y, int w, int h, int a1, int a2 )

Sets the points of the array to those describing an arc of an ellipse with size, width w by height h, and position (x, y), starting from angle a1 and spanning by angle a2. The resulting array has sufficient resolution for pixel accuracy (see the overloaded function which takes an additional QMatrix parameter).

Angles are specified in 16ths of a degree, i.e. a full circle equals 5760 (16*360). Positive values mean counter-clockwise, whereas negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

See the angle diagram.

### void QPointArray::makeArc ( int x, int y, int w, int h, int a1, int a2, const QMatrix & xf )

This is an overloaded member function, provided for convenience. It behaves essentially like the above function.

Sets the points of the array to those describing an arc of an ellipse with width w and height h and position (x, y), starting from angle a1, and spanning angle by a2, and transformed by the matrix xf. The resulting array has sufficient resolution for pixel accuracy.

Angles are specified in 16ths of a degree, i.e. a full circle equals 5760 (16 * 360). Positive values mean counter-clockwise, whereas negative values mean the clockwise direction. Zero degrees is at the 3 o'clock position.

See also angle diagram.

### void QPointArray::makeEllipse ( int x, int y, int w, int h )

Sets the points of the array to those describing an ellipse with size, width w by height h, and position (x, y).

The returned array has sufficient resolution for use as pixels.