<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之旅 廣告
                # QHoverEvent Class Reference ## [[QtGui](index.htm) module] 該QHoverEvent類包含描述一個鼠標事件參數。[More...](#details) 繼承[QEvent](qevent.html)。 ### Methods * `__init__ (self, QEvent.Type?type, QPoint?pos, QPoint?oldPos)` * `__init__ (self, QHoverEvent)` * `QPoint oldPos (self)` * `QPoint pos (self)` * * * ## Detailed Description 該QHoverEvent類包含描述一個鼠標事件參數。 當鼠標光標移入,出,或窗口小部件中的鼠標事件發生時,如果部件有[Qt.WA_Hover](qt.html#WidgetAttribute-enum)屬性。 該功能[pos](qhoverevent.html#pos)( )給出當前光標位置,而[oldPos](qhoverevent.html#oldPos)( )給出的舊鼠標的位置。 有事件之間有一些相似之處[QEvent.HoverEnter](qevent.html#Type-enum)和[QEvent.HoverLeave](qevent.html#Type-enum)和事件[QEvent.Enter](qevent.html#Type-enum)和[QEvent.Leave](qevent.html#Type-enum)。然而,他們都略有不同,因為我們做一個更新( )中的事件處理程序[HoverEnter](qevent.html#Type-enum)和[HoverLeave](qevent.html#Type-enum)。 [QEvent.HoverMove](qevent.html#Type-enum)也是從稍微不同的[QEvent.MouseMove](qevent.html#Type-enum)。讓我們考慮包含這又包含子C(所有帶鼠標跟蹤啟用)兒童B中的頂層窗口答: ![](https://img.kancloud.cn/02/b2/02b202d70c0105f7c7362ad279c3b42a_186x236.png) 現在,如果你從頂部到A的中間底部移動光標,你將得到下面的[QEvent.MouseMove](qevent.html#Type-enum)事件: 1. A.MouseMove 2. B.MouseMove 3. C.MouseMove 你會得到相同的事件[QEvent.HoverMove](qevent.html#Type-enum),除了事件始終傳播到頂層,無論該事件是否被接受與否。它只會停止與傳播[Qt.WA_NoMousePropagation](qt.html#WidgetAttribute-enum)屬性。 在這種情況下,事件將發生在下列方式: 1. A.HoverMove 2. A.HoverMove , B.HoverMove 3. A.HoverMove , B.HoverMove , C.HoverMove * * * ## Method Documentation ``` QHoverEvent.__init__ (self, QEvent.Type?type, QPoint?pos, QPoint?oldPos) ``` 構造一個懸停事件對象。 該_type_參數必須是[QEvent.HoverEnter](qevent.html#Type-enum),[QEvent.HoverLeave](qevent.html#Type-enum)或[QEvent.HoverMove](qevent.html#Type-enum)。 該_pos_是當前鼠標光標的位置相對于接收部件,而_oldPos_是先前的鼠標光標的位置相對于接收部件。 ``` QHoverEvent.__init__ (self, QHoverEvent) ``` ``` QPoint QHoverEvent.oldPos (self) ``` [](qpoint.html) [返回鼠標光標的前面的位置,相對于接收到的事件的插件。如果沒有之前的位置, oldPos ( )將返回相同的位置](qpoint.html)[pos](qhoverevent.html#pos)( ) 。 On [QEvent.HoverEnter](qevent.html#Type-enum)活動,這一立場永遠是[QPoint](qpoint.html)(-1 ,-1)。 **See also** [pos](qhoverevent.html#pos)( ) 。 ``` QPoint QHoverEvent.pos (self) ``` [ 返回鼠標光標的位置,相對于接收到的事件的插件。 ](qpoint.html) [On](qpoint.html) [QEvent.HoverLeave](qevent.html#Type-enum)活動,這一立場永遠是[QPoint](qpoint.html)(-1 ,-1)。 **See also** [oldPos](qhoverevent.html#oldPos)( ) 。
                  <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>

                              哎呀哎呀视频在线观看