<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                # QTextLength Class Reference ## [[QtGui](index.htm) module] 該QTextLength類封裝了不同類型的長度在使用[QTextDocument](qtextdocument.html)。[More...](#details) ### Types * `enum Type { VariableLength, FixedLength, PercentageLength }` ### Methods * `__init__ (self)` * `__init__ (self, Type?atype, float?avalue)` * `__init__ (self, QVariant?variant)` * `__init__ (self, QTextLength)` * `float rawValue (self)` * `Type type (self)` * `float value (self, float?maximumLength)` ### Special Methods * `bool __eq__ (self, QTextLength?other)` * `bool __ne__ (self, QTextLength?other)` * * * ## Detailed Description 該QTextLength類封裝了不同類型的長度在使用[QTextDocument](qtextdocument.html)。 當我們指定在文本文檔中元素的長度的值,我們往往需要提供一些其他信息,以便長度是用在我們預期的方式。例如,當我們指定一個表的寬度,該值可以代表像素的固定數量,或者它可以是一個百分比值。這個信息改變的值的兩個含義,它的使用方式。 一般來說,這個類用于指定表格的寬度。這些可以被指定為像素的固定量,作為含幀的寬度的百分比,或由可變寬度,允許它佔用只是它要求的空間。 * * * ## Type Documentation ``` QTextLength.Type ``` 這個枚舉變量描述了不同類型的長度對象可以有。 | Constant | Value | Description | | --- | --- | --- | | `QTextLength.VariableLength` | `0` | 物體的寬度是可變的 | | `QTextLength.FixedLength` | `1` | 物體的寬度是固定的 | | `QTextLength.PercentageLength` | `2` | 物體的寬度是在最大寬度的百分比 | **See also** [type](qtextlength.html#type)( ) 。 * * * ## Method Documentation ``` QTextLength.__init__ (self) ``` 構造一個新的長度對象,它代表一個變量的大小。 ``` QTextLength.__init__ (self, Type?atype, float?avalue) ``` 構造的賦予了新的對象的長度_type_和_value_。 ``` QTextLength.__init__ (self, QVariant?variant) ``` ``` QTextLength.__init__ (self, QTextLength) ``` ``` float QTextLength.rawValue (self) ``` 返回的約束值,該值是特定的長度的類型。如果長度[QTextLength.PercentageLength](qtextlength.html#Type-enum)然后原始值的百分比,在0至100的范圍內。如果長度[QTextLength.FixedLength](qtextlength.html#Type-enum)那么返回的固定金額。對于可變長度,則返回0。 ``` Type QTextLength.type (self) ``` [ 返回此長度的對象的類型。 ](qtextlength.html#Type-enum) [**See also**](qtextlength.html#Type-enum) [QTextLength.Type](qtextlength.html#Type-enum)。 ``` float QTextLength.value (self, float?maximumLength) ``` 返回的有效長度,由該長度的對象的類型和指定的約束_maximumLength_。 **See also** [type](qtextlength.html#type)( ) 。 ``` bool QTextLength.__eq__ (self, QTextLength?other) ``` ``` bool QTextLength.__ne__ (self, QTextLength?other) ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看