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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                # QGraphicsSceneEvent Class Reference ## [[QtGui](index.htm) module] 該QGraphicsSceneEvent類提供了一個基類,所有圖形查看相關事件。[More...](#details) 繼承[QEvent](qevent.html)。 通過繼承[QGraphicsSceneContextMenuEvent](qgraphicsscenecontextmenuevent.html),[QGraphicsSceneDragDropEvent](qgraphicsscenedragdropevent.html),[QGraphicsSceneHelpEvent](qgraphicsscenehelpevent.html),[QGraphicsSceneHoverEvent](qgraphicsscenehoverevent.html),[QGraphicsSceneMouseEvent](qgraphicsscenemouseevent.html),[QGraphicsSceneMoveEvent](qgraphicsscenemoveevent.html),[QGraphicsSceneResizeEvent](qgraphicssceneresizeevent.html)和[QGraphicsSceneWheelEvent](qgraphicsscenewheelevent.html)。 ### Methods * `setWidget (self, QWidget?widget)` * `QWidget widget (self)` * * * ## Detailed Description 該QGraphicsSceneEvent類提供了一個基類,所有圖形查看相關事件。 當[QGraphicsView](qgraphicsview.html)接收Qt的鼠標,鍵盤和拖放事件([QMouseEvent](qmouseevent.html),[QKeyEvent](qkeyevent.html), QDragEvent等),它轉換成QGraphicsSceneEvent子類的實例,并將其轉發到[QGraphicsScene](qgraphicsscene.html)它顯示。那么現場的事件轉發到相關項目。 例如,當一個[QGraphicsView](qgraphicsview.html)收到[QMouseEvent](qmouseevent.html)類型MousePress作為一個用戶點擊一個響應,該視圖發送一個[QGraphicsSceneMouseEvent](qgraphicsscenemouseevent.html)類型[GraphicsSceneMousePress](qevent.html#Type-enum)到底層[QGraphicsScene](qgraphicsscene.html)通過其[mousePressEvent()](qgraphicsscene.html#mousePressEvent)功能。默認[QGraphicsScene.mousePressEvent](qgraphicsscene.html#mousePressEvent)()實現確定哪些項目被點擊和事件轉發到[QGraphicsItem.mousePressEvent](qgraphicsitem.html#mousePressEvent)( ) 。 子類如[QGraphicsSceneMouseEvent](qgraphicsscenemouseevent.html)和[QGraphicsSceneContextMenuEvent](qgraphicsscenecontextmenuevent.html)從原來提供的坐標[QEvent](qevent.html)在屏幕上,場景和物品坐標(見[screenPos()](qgraphicsscenemouseevent.html#screenPos),[scenePos()](qgraphicsscenemouseevent.html#scenePos)和[pos()](qgraphicsscenemouseevent.html#pos)) 。該項目的坐標通過設置[QGraphicsScene](qgraphicsscene.html)面前的事件轉發到事件到[QGraphicsItem](qgraphicsitem.html)。鼠標事件也增加了可能性,從視圖收到的最后一個事件獲取的坐標(見[lastScreenPos()](qgraphicsscenemouseevent.html#lastScreenPos),[lastScenePos()](qgraphicsscenemouseevent.html#lastScenePos)和[lastPos()](qgraphicsscenemouseevent.html#lastPos)) 。 * * * ## Method Documentation ``` QGraphicsSceneEvent.setWidget (self, QWidget?widget) ``` ``` QWidget QGraphicsSceneEvent.widget (self) ``` [ 返回小部件產生事件,或者0,如果事件從另一個應用程序的起源。 ](qwidget.html)
                  <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>

                              哎呀哎呀视频在线观看