<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # QFocusEvent Class Reference ## [[QtGui](index.htm) module] 該QFocusEvent類包含事件參數的部件焦點事件。[More...](#details) 繼承[QEvent](qevent.html)。 ### Methods * `__init__ (self, QEvent.Type?type, Qt.FocusReason?reason?=?Qt.OtherFocusReason)` * `__init__ (self, QFocusEvent)` * `bool gotFocus (self)` * `bool lostFocus (self)` * `Qt.FocusReason reason (self)` * * * ## Detailed Description 該QFocusEvent類包含事件參數的部件焦點事件。 焦點事件發送到窗口部件的鍵盤輸入焦點的變化時。焦點事件,由于鼠標操作,按鍵(如發生**Tab** or **Backtab**) ,窗口系統,彈出菜單,鍵盤快捷鍵,或其他應用程序特定的原因。之所以特別關注事件被返回[reason](qfocusevent.html#reason)( )在適當的事件處理程序。 該事件處理程序[QWidget.focusInEvent](qwidget.html#focusInEvent)( )[QWidget.focusOutEvent](qwidget.html#focusOutEvent)( ) , QGraphicsItem.focusInEvent和[QGraphicsItem.focusOutEvent](qgraphicsitem.html#focusOutEvent)( )獲得焦點事件。 * * * ## Method Documentation ``` QFocusEvent.__init__ (self, QEvent.Type?type, Qt.FocusReason?reason?=?Qt.OtherFocusReason) ``` 構造一個焦點事件的對象。 該_type_參數必須是[QEvent.FocusIn](qevent.html#Type-enum) or [QEvent.FocusOut](qevent.html#Type-enum)。該_reason_描述了焦點變化的原因。 ``` QFocusEvent.__init__ (self, QFocusEvent) ``` ``` bool QFocusEvent.gotFocus (self) ``` 返回True如果[type](qevent.html#type)()是[QEvent.FocusIn](qevent.html#Type-enum)否則返回False 。 ``` bool QFocusEvent.lostFocus (self) ``` 返回True如果[type](qevent.html#type)()是[QEvent.FocusOut](qevent.html#Type-enum)否則返回False 。 ``` Qt.FocusReason QFocusEvent.reason (self) ``` [ 返回此焦點事件的原因。 ](qt.html#FocusReason-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>

                              哎呀哎呀视频在线观看