<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QStyleOptionFrameV2 Class Reference ## [[QtGui](index.htm) module] 該QStyleOptionFrameV2類是用來描述用于繪制Qt中4.1或更高的幀所必需的參數。[More...](#details) 繼承[QStyleOptionFrame](qstyleoptionframe.html)。 通過繼承[QStyleOptionFrameV3](qstyleoptionframev3.html)。 ### Types * `enum FrameFeature { None, Flat }` * `class **[FrameFeatures](index.htm)**` * `enum StyleOptionVersion { Version }` ### Methods * `__init__ (self)` * `__init__ (self, QStyleOptionFrameV2?other)` * `__init__ (self, QStyleOptionFrame?other)` ### Members * `FrameFeatures **[features](qstyleoptionframev2.html#features-var)**` * * * ## Detailed Description 該QStyleOptionFrameV2類是用來描述用于繪制Qt中4.1或更高的幀所必需的參數。 QStyleOptionFrameV2繼承[QStyleOptionFrame](qstyleoptionframe.html)這是用于繪制幾個內置的Qt部件,包括[QFrame](qframe.html),[QGroupBox](qgroupbox.html),[QLineEdit](qlineedit.html)和[QMenu](qmenu.html)。 該QStyleOptionFrameV2類的實例有[type](qstyleoption.html#type-varx) [SO_Frame](qstyleoption.html#OptionType-enum)和[version](qstyleoption.html#version-var)2 。該類型在內部使用[QStyleOption](qstyleoption.html),它的子類,并[qstyleoption_cast](qstyleoption.html#qstyleoption_cast)()來確定的樣式選項的類型。一般來說,你不需要擔心這個,除非你想創建自己的[QStyleOption](qstyleoption.html)子類和你自己的風格。的版本是由[QStyleOption](qstyleoption.html)子類實現不破壞兼容性擴展。如果你使用[qstyleoption_cast](qstyleoption.html#qstyleoption_cast)( ) ,你通常并不需要檢查它。 如果您創建自己的[QStyle](qstyle.html)子類,你應該同時處理[QStyleOptionFrame](qstyleoptionframe.html)和QStyleOptionFrameV2 。實現這一目標的方法之一是使用QStyleOptionFrameV2拷貝構造函數。例如: ``` [QStyleOptionFrame](qstyleoptionframe.html) *option; if (const [QStyleOptionFrame](qstyleoptionframe.html) *frameOption = qstyleoption_cast<const [QStyleOptionFrame](qstyleoptionframe.html) *>(option)) { QStyleOptionFrameV2 frameOptionV2(*frameOption); // draw the frame using frameOptionV2 } ``` 在上面的例子:如果`frameOption`的版本號是1,[FrameFeature](qstyleoptionframev2.html#FrameFeature-enum)被設置為[None](qstyleoptionframev2.html#FrameFeature-enum)為`frameOptionV2`。如果`frameOption`的版本是2 ,構造函數會簡單地復制`frameOption`的[FrameFeature](qstyleoptionframev2.html#FrameFeature-enum)值。 舉一個例子展示風格選擇如何使用,請參閱[Styles](index.htm)例子。 * * * ## Type Documentation ``` QStyleOptionFrameV2.FrameFeature ``` 這個枚舉變量描述了不同類型的功能框可以有。 | Constant | Value | Description | | --- | --- | --- | | `QStyleOptionFrameV2.None` | `0x00` | 表示正常幀。 | | `QStyleOptionFrameV2.Flat` | `0x01` | 表示一個平面框架。 | 該FrameFeatures類型是一個typedef為[QFlags](index.htm)\u003cFrameFeature\u003e 。它存儲FrameFeature值的或組合。 ``` QStyleOptionFrameV2.StyleOptionVersion ``` 此枚舉是用來保存有關樣式選項的版本信息,并定義每個[QStyleOption](qstyleoption.html)子類。 | Constant | Value | Description | | --- | --- | --- | | `QStyleOptionFrameV2.Version` | `2` | 2 | 的版本是由[QStyleOption](qstyleoption.html)子類實現不破壞兼容性擴展。如果你使用[qstyleoption_cast](qstyleoption.html#qstyleoption_cast)( ) ,你通常并不需要檢查它。 **See also** [StyleOptionType](qstyleoptionframe.html#StyleOptionType-enum)。 * * * ## Method Documentation ``` QStyleOptionFrameV2.__init__ (self) ``` 構造一個[QStyleOptionFrameV2](qstyleoptionframev2.html)對象。 ``` QStyleOptionFrameV2.__init__ (self, QStyleOptionFrameV2?other) ``` 構造一個[QStyleOptionFrameV2](qstyleoptionframev2.html)副本_other_樣式選項。 ``` QStyleOptionFrameV2.__init__ (self, QStyleOptionFrame?other) ``` 構造一個[QStyleOptionFrameV2](qstyleoptionframev2.html)副本_other_它可以是風格的選擇[QStyleOptionFrameV2](qstyleoptionframev2.html) or [QStyleOptionFrame](qstyleoptionframe.html)類型。 如果_other_風格選擇的版本是1 ,新樣式選項的[FrameFeature](qstyleoptionframev2.html#FrameFeature-enum)值被設置為[QStyleOptionFrameV2.None](qstyleoptionframev2.html#FrameFeature-enum)。如果它的版本為2時,其[FrameFeature](qstyleoptionframev2.html#FrameFeature-enum)值被簡單地復制到新的樣式選項。 **See also** [version](qstyleoption.html#version-var)。 * * * ## Member Documentation ``` FrameFeatures features ``` [ 這個變量保存的描述這個框架的功能的按位或。 ](index.htm) [**See also**](index.htm) [FrameFeature](qstyleoptionframev2.html#FrameFeature-enum)。
                  <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>

                              哎呀哎呀视频在线观看