QTextOption Class Reference |
Constant | Value |
---|---|
QTextOption::IncludeTrailingSpaces | 0x80000000 |
The Flags type is a typedef for QFlags<Flag>. It stores an OR combination of Flag values.
This enum describes how text is wrapped in a document.
Constant | Value | Description |
---|---|---|
QTextOption::NoWrap | 0 | Text is not wrapped at all. |
QTextOption::WordWrap | 1 | Text is wrapped at word boundaries. |
QTextOption::ManualWrap | 2 | Wrapping occurs at a manually specified length from the start of the line. |
QTextOption::WrapAnywhere | 3 | Text can be wrapped at any point on a line, even if it occurs in the middle of a word. |
QTextOption::WrapAtWordBoundaryOrAnywhere | 4 | If possible, wrapping occurs at a word boundary; otherwise it will occur at the appropriate point on the line, even in the middle of a word. |
Constructs a text option with default properties for text.
Constructs a text option with the given alignment for text.
Construct a copy of the other text option.
Destroys the text option.
Returns the text alignment defined by the option.
See also setAlignment().
Returns the flags associated with the option.
See also setFlags().
Sets the option's text alignment to the specified alignment.
See also alignment().
Sets the flags associated with the option to the given flags.
See also flags().
Sets the tab positions for the text layout to those specified by tabStops.
See also tabArray() and setTabStop().
Sets the distance in device units between tab stops to the value specified by tabStop.
See also tabStop() and setTabArray().
Sets the direction of the text layout defined by the option to the given direction.
See also textDirection().
If enable is true then the layout will use design metrics; otherwise it will use the metrics of the paint device (which is the default behavior).
See also useDesignMetrics().
Sets the option's text wrap mode to the given mode.
See also wrapMode().
Returns a list of tab positions defined for the text layout.
See also setTabArray() and tabStop().
Returns the distance in device units between tab stops.
See also setTabStop() and tabArray().
Returns the direction of the text layout defined by the option.
See also setTextDirection().
Returns true if the layout uses design rather than device metrics; otherwise returns false.
See also setUseDesignMetrics().
Returns the text wrap mode defined by the option.
See also setWrapMode().
Returns true if the text option is the same as the other text option; otherwise returns false.
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.1 | |
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