QLine Class Reference |
[Missing image qline-point.png] | [Missing image qline-coordinates.png] |
The positions of the line's end points can be found with the p1(), x1(), y1(), p2(), x2(), and y2() functions. The horizontal and vertical components of the line are returned by the dx() and dy() functions.
The line can be translated along the length of another line with the translate() function.
See also QPoint, QSize, QRect, and QLineF.
Constructs a null line.
Constructs a line object that represents the line between pt1 and pt2.
Constructs a line object that represents the line between (x1, y1) and (x2, y2).
Returns the line's start point.
See also x1(), y1(), and p2().
Returns the line's end point.
See also x2(), y2(), and p1().
Returns the x-coordinate of the line's start point.
See also y1(), x2(), and p1().
Returns the x-coordinate of the line's end point.
See also y2(), x1(), and p2().
Returns the y-coordinate of the line's start point.
See also x1(), y2(), and p1().
Returns the y-coordinate of the line's end point.
See also x2(), y1(), and p2().
Returns the horizontal component of the line's vector.
See also dy().
Returns the vertical component of the line's vector.
See also dx().
Returns true if the line is not set up with valid start and end point; otherwise returns false.
Translates this line with the point given.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Translates this line the distance dx and dy.
Returns true if other is not the same as this line.
A line is different from another line if any of their points are different or their order is different.
Returns true if other is the same line as this line.
A line is identical to another line if the points are the same and their order is the same.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Writes the line to the stream and returns a reference to the stream.
See also Format of the QDataStream operators.
This is an overloaded member function, provided for convenience. It behaves essentially like the above function.
Reads a QLine from the stream into the line and returns a reference to the stream.
See also Format of the QDataStream operators.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. | Qt 4.0 | |
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD. | ||
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP ! |
Copyright © 2000-2012 - www.developpez.com