QRubberBand Class Reference
|
Constant | Value | Description |
---|---|---|
QRubberBand::Line | 0 | A QRubberBand can represent a vertical or horizontal line. Geometry is still given in rect() and the line will fill the given geometry on most styles. |
QRubberBand::Rectangle | 1 | A QRubberBand can represent a rectangle. Some styles will interpret this as a filled (often semi-transparent) rectangle, or a rectangular outline. |
Constructs a rubber band of shape s, with parent p.
By default a rectangular rubber band (s is Rectangle) will use a mask, so that a small border of the rectangle is all that is visible. Some styles (e.g., native Mac OS X) will change this and call QWidget::setWindowOpacity() to make a semi-transparent filled selection rectangle.
Destructor.
Initialize option with the values from this QRubberBand. This method is useful for subclasses when they need a QStyleOptionRubberBand, but don't want to fill in all the information themselves.
See also QStyleOption::initFrom().
Moves the rubberband to point (x, y).
See also resize().
This is an overloaded member function, provided for convenience.
Moves the rubberband to point p.
See also resize().
Resizes the rubberband so that its width is width, and its height is height.
See also move().
This is an overloaded member function, provided for convenience.
Resizes the rubberband so that its new size is size.
See also move().
Sets the geometry of the rubber band to rect, specified in the coordinate system of its parent widget.
See also QWidget::geometry.
This is an overloaded member function, provided for convenience.
Sets the geometry of the rubberband to the rectangle whose top-left corner lies at the point (x, y), and with dimensions specified by width and height. The geometry is specified in the parent widget's coordinate system.
Returns the shape of this rubber band. The shape can only be set upon construction.
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 qtextended4.4 | |
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