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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # QStatusTipEvent Class Reference ## [[QtGui](index.htm) module] 該QStatusTipEvent類提供了用于顯示在狀態欄消息的事件。[More...](#details) 繼承[QEvent](qevent.html)。 ### Methods * `__init__ (self, QString?tip)` * `__init__ (self, QStatusTipEvent)` * `QString tip (self)` * * * ## Detailed Description 該QStatusTipEvent類提供了用于顯示在狀態欄消息的事件。 狀態提示可以在窗口小部件使用設置的[QWidget.setStatusTip](qwidget.html#statusTip-prop)()函數。它們顯示在狀態欄,當鼠標光標進入窗口小部件。例如: | ``` MainWindow.MainWindow([QWidget](qwidget.html) *parent) : [QMainWindow](qmainwindow.html)(parent) { [QWidget](qwidget.html) *myWidget = new [QWidget](qwidget.html); myWidget-&gt;setStatusTip(tr("This is my widget.")); setCentralWidget(myWidget); ... } ``` | ![Widget with status tip.](https://img.kancloud.cn/81/c2/81c21e2b780adfbafe9c71ad616a6d57_186x109.png) | 狀態提示也可以使用動作設置[QAction.setStatusTip](qaction.html#statusTip-prop)( )函數: | ``` MainWindow.MainWindow([QWidget](qwidget.html) *parent) : [QMainWindow](qmainwindow.html)(parent) { [QMenu](qmenu.html) *fileMenu = menuBar()-&gt;addMenu(tr("File")); [QAction](qaction.html) *newAct = new [QAction](qaction.html)(tr("&New"), this); newAct-&gt;setStatusTip(tr("Create a new file.")); fileMenu-&gt;addAction(newAct); ... } ``` | ![Action with status tip.](https://img.kancloud.cn/97/43/9743a979f63456ac80f2a4ca7fbc7722_186x109.png) | 最后,狀態提示通過支持的項目視圖類的[Qt.StatusTipRole](qt.html#ItemDataRole-enum)枚舉值。 * * * ## Method Documentation ``` QStatusTipEvent.__init__ (self, QString?tip) ``` 構造一個狀態提示事件與指定的文本_tip_。 **See also** [tip](qstatustipevent.html#tip)( ) 。 ``` QStatusTipEvent.__init__ (self, QStatusTipEvent) ``` ``` QString QStatusTipEvent.tip (self) ``` 返回消息在狀態欄中顯示。 **See also** [QStatusBar.showMessage](qstatusbar.html#showMessage)( ) 。
                  <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>

                              哎呀哎呀视频在线观看