<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之旅 廣告
                # QAnimationGroup Class Reference ## [[QtCore](index.htm) module] 該QAnimationGroup類是動畫組的抽象基類。[More...](#details) 繼承[QAbstractAnimation](qabstractanimation.html)。 通過繼承[QParallelAnimationGroup](qparallelanimationgroup.html)和[QSequentialAnimationGroup](qsequentialanimationgroup.html)。 ### Methods * `__init__ (self, QObject?parent?=?None)` * `addAnimation (self, QAbstractAnimation?animation)` * `QAbstractAnimation animationAt (self, int?index)` * `int animationCount (self)` * `clear (self)` * `bool event (self, QEvent?event)` * `int indexOfAnimation (self, QAbstractAnimation?animation)` * `insertAnimation (self, int?index, QAbstractAnimation?animation)` * `removeAnimation (self, QAbstractAnimation?animation)` * `QAbstractAnimation takeAnimation (self, int?index)` * * * ## Detailed Description 該QAnimationGroup類是動畫組的抽象基類。 動畫組是一個容器的子類的動畫([QAbstractAnimation](qabstractanimation.html)) 。一組通常是負責管理[state](qabstractanimation.html#State-enum)它的動畫,也就是說,它決定何時啟動,停止,恢復和暫停它們。目前, Qt提供了兩個這樣的組:[QParallelAnimationGroup](qparallelanimationgroup.html)和[QSequentialAnimationGroup](qsequentialanimationgroup.html)。查一查他們的類的描述了解詳情。 由于QAnimationGroup從繼承[QAbstractAnimation](qabstractanimation.html),你可以結合組和輕松構建復雜的動畫圖形。您可以查詢[QAbstractAnimation](qabstractanimation.html)該組屬于(使用[group()](qabstractanimation.html#group)功能)。 要啟動一個頂級的動畫組,您只需使用[start()](qabstractanimation.html#start)從功能[QAbstractAnimation](qabstractanimation.html)。由頂級的動畫組,我們認為本身不包含在另一組一組。直接不支持啟動子組,并可能導致意外的行為。 QAnimationGroup提供用于添加和檢索的動畫。除此之外,你可以通過調用remove (刪除動畫) ,并清除動畫組通過調用[clear](qanimationgroup.html#clear)( ) 。你可以通過聽,保持變化組的動畫軌跡[QEvent.ChildAdded](qevent.html#Type-enum)和[QEvent.ChildRemoved](qevent.html#Type-enum)事件。 QAnimationGroup需要它管理的動畫的所有權,并確保當動畫組將被刪除,他們都將被刪除。 * * * ## Method Documentation ``` QAnimationGroup.__init__ (self, QObject?parent?=?None) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個[QAnimationGroup](qanimationgroup.html)。_parent_被傳遞給[QObject](qobject.html)的構造。 ``` QAnimationGroup.addAnimation (self, QAbstractAnimation?animation) ``` 該_animation_說法有它的所有權轉移給Qt的。 添加_animation_這一組。這將調用insertAnimation與指數等于[animationCount](qanimationgroup.html#animationCount)( ) 。 **Note:**該小組采用了動畫的所有權。 **See also** [removeAnimation](qanimationgroup.html#removeAnimation)( ) 。 ``` QAbstractAnimation QAnimationGroup.animationAt (self, int?index) ``` [](qabstractanimation.html) [返回一個指針,指向在動畫_index_在這一組。當你需要訪問一個特定的動畫,此功能非常有用。_index_是介于0和](qabstractanimation.html)[animationCount](qanimationgroup.html#animationCount)( ) - 1 。 **See also** [animationCount](qanimationgroup.html#animationCount)()和[indexOfAnimation](qanimationgroup.html#indexOfAnimation)( ) 。 ``` int QAnimationGroup.animationCount (self) ``` 返回該組管理動畫的數量。 **See also** [indexOfAnimation](qanimationgroup.html#indexOfAnimation)( )[addAnimation](qanimationgroup.html#addAnimation)()和[animationAt](qanimationgroup.html#animationAt)( ) 。 ``` QAnimationGroup.clear (self) ``` 刪除,并刪除所有的動畫在這個動畫組,和當前時間重置為0 。 **See also** [addAnimation](qanimationgroup.html#addAnimation)()和[removeAnimation](qanimationgroup.html#removeAnimation)( ) 。 ``` bool QAnimationGroup.event (self, QEvent?event) ``` 從重新實現[QObject.event](qobject.html#event)( ) 。 ``` int QAnimationGroup.indexOfAnimation (self, QAbstractAnimation?animation) ``` 返回的索引_animation_。返回的索引可以傳遞給其他函數接受一個索引作為參數。 **See also** [insertAnimation](qanimationgroup.html#insertAnimation)( )[animationAt](qanimationgroup.html#animationAt)()和[takeAnimation](qanimationgroup.html#takeAnimation)( ) 。 ``` QAnimationGroup.insertAnimation (self, int?index, QAbstractAnimation?animation) ``` 該_animation_說法有它的所有權轉移給Qt的。 Inserts _animation_這個動畫組_index_。如果_index_為0的動畫被插在開頭。如果_index_ is [animationCount](qanimationgroup.html#animationCount)() ,該動畫被插入在末端。 **Note:**該小組采用了動畫的所有權。 **See also** [takeAnimation](qanimationgroup.html#takeAnimation)( )[addAnimation](qanimationgroup.html#addAnimation)( )[indexOfAnimation](qanimationgroup.html#indexOfAnimation)()和[removeAnimation](qanimationgroup.html#removeAnimation)( ) 。 ``` QAnimationGroup.removeAnimation (self, QAbstractAnimation?animation) ``` 該_animation_爭論 移除_animation_從本組。所有權_animation_傳送到呼叫者。 **See also** [takeAnimation](qanimationgroup.html#takeAnimation)( )[insertAnimation](qanimationgroup.html#insertAnimation)()和[addAnimation](qanimationgroup.html#addAnimation)( ) 。 ``` QAbstractAnimation QAnimationGroup.takeAnimation (self, int?index) ``` [ 該_QAbstractAnimation_結果 返回在動畫_index_從動畫組中刪除。 **Note:**動畫的所有權轉移給調用者。 ](qabstractanimation.html) [**See also**](qabstractanimation.html) [removeAnimation](qanimationgroup.html#removeAnimation)( )[addAnimation](qanimationgroup.html#addAnimation)( )[insertAnimation](qanimationgroup.html#insertAnimation)()和[indexOfAnimation](qanimationgroup.html#indexOfAnimation)( ) 。
                  <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>

                              哎呀哎呀视频在线观看