![]() |
Home · All Classes · Main Classes · Annotated · Grouped Classes · Functions | ![]() |
The following class members are part of the Qt 3 support layer. They are provided to help you port old code to Qt 4. We advise against using them in new code.
Use background().color() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the bounding rectangle of the first len characters of the given text constrained by the rectangle that begins at point (x, y) with width w and height h.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Draws the convex polygon defined by polygon using the current pen and brush.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Draws the convex polygon defined by polygon using the current pen and brush.
Draws a cubic Bezier curve defined by the control points in a, starting at a[index] (index defaults to 0).
Control points after a[index + 3] are ignored. Nothing happens if there aren't enough control points.
Draws nlines separate lines from points defined in a, starting at a[index] (index defaults to 0). If nlines is -1 (the default) all points until the end of the array are used (i.e. (a.size()-index)/2 lines are drawn).
Draws the 1st line from a[index] to a[index + 1]. Draws the 2nd line from a[index + 2] to a[index + 3] etc.
See also drawPolyline(), drawPolygon(), and QPen.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Draws npoints points in the polygon points starting on index using the current pen.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Draws the polygon defined by the points in the point array pa.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Draws the polyline defined by the npoints points in pa starting at index. (index defaults to 0.)
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use drawText(x, y, text.mid(pos, len)) instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use drawText(p, text.mid(pos, len)) instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use drawText(x, y, text.left(len)) instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use drawText(p, text.left(len)) instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Draws the string str within the rectangle with origin (x, y), width w and height h. If len is -1 (the default) all the text is drawn, otherwise only the first len characters are drawn. The flags that are given in the flags parameter are Qt::AlignmentFlags and Qt::TextFlags OR'd together. br (if not null) is set to the actual bounding rectangle of the output.
Use viewTransformEnabled() instead.
Use matrixEnabled() instead.
Use setRedirected() instead.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Use redirected() instead.
Use resetMatrix() instead.
Use setBackground() instead.
Use setViewTransformEnabled() instead.
Use setMatrix() instead.
Use setMatrixEnabled() instead.
Use matrix() instead.
Returns the point p transformed from model coordinates to device coordinates.
See also xFormDev() and QMatrix::map().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the rectangle r transformed from model coordinates to device coordinates.
If world transformation is enabled and rotation or shearing has been specified, then the bounding rectangle is returned.
See also xFormDev() and QMatrix::map().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the point array a transformed from model coordinates to device coordinates.
See also xFormDev() and QMatrix::map().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the point array av transformed from model coordinates to device coordinates. The index is the first point in the array and npoints denotes the number of points to be transformed. If npoints is negative, all points from av[index] until the last point in the array are transformed.
The returned point array consists of the number of points that were transformed.
Example:
QPolygon a(10); QPolygon b; b = painter.xForm(a, 2, 4); // b.size() == 4 b = painter.xForm(a, 2, -1); // b.size() == 8
See also xFormDev() and QMatrix::map().
Returns the rectangle r transformed from device coordinates to model coordinates.
If world transformation is enabled and rotation or shearing is used, then the bounding rectangle is returned.
See also xForm() and QMatrix::map().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the point p transformed from device coordinates to model coordinates.
See also xForm() and QMatrix::map().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the point array a transformed from device coordinates to model coordinates.
See also xForm() and QMatrix::map().
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Returns the point array ad transformed from device coordinates to model coordinates. The index is the first point in the array and npoints denotes the number of points to be transformed. If npoints is negative, all points from ad[index] until the last point in the array are transformed.
The returned point array consists of the number of points that were transformed.
Example:
QPolygon a(10); QPolygon b; b = painter.xFormDev(a, 1, 3); // b.size() == 3 b = painter.xFormDev(a, 1, -1); // b.size() == 9
See also xForm() and QMatrix::map().
Copyright © 2005 Trolltech | Trademarks | Qt 4.0.0 |