<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 功能強大 支持多語言、二開方便! 廣告
                # QToolBox Class Reference ## [[QtGui](index.htm) module] 該QToolBox類提供了選項卡式窗口小部件項目的列。[More...](#details) 繼承[QFrame](qframe.html)。 ### Methods * `__init__ (self, QWidget?parent?=?None, Qt.WindowFlags?flags?=?0)` * `int addItem (self, QWidget?item, QString?text)` * `int addItem (self, QWidget?item, QIcon?iconSet, QString?text)` * `changeEvent (self, QEvent)` * `int count (self)` * `int currentIndex (self)` * `QWidget currentWidget (self)` * `bool event (self, QEvent?e)` * `int indexOf (self, QWidget?widget)` * `int insertItem (self, int?index, QWidget?item, QString?text)` * `int insertItem (self, int?index, QWidget?widget, QIcon?icon, QString?text)` * `bool isItemEnabled (self, int?index)` * `QIcon itemIcon (self, int?index)` * `itemInserted (self, int?index)` * `itemRemoved (self, int?index)` * `QString itemText (self, int?index)` * `QString itemToolTip (self, int?index)` * `removeItem (self, int?index)` * `setCurrentIndex (self, int?index)` * `setCurrentWidget (self, QWidget?widget)` * `setItemEnabled (self, int?index, bool?enabled)` * `setItemIcon (self, int?index, QIcon?icon)` * `setItemText (self, int?index, QString?text)` * `setItemToolTip (self, int?index, QString?toolTip)` * `showEvent (self, QShowEvent?e)` * `QWidget widget (self, int?index)` ### Special Methods * `__len__ (self)` ### Qt Signals * `void currentChanged (int)` * * * ## Detailed Description 該QToolBox類提供了選項卡式窗口小部件項目的列。 工具箱是顯示卡另一個上方的一列,與當前選項卡下面顯示當前項目的Widget。每個標籤具有標籤的列中的索引位置。一個標籤的項目是[QWidget](qwidget.html)。 每個項目都有一個[itemText](qtoolbox.html#itemText)() ,可選[itemIcon](qtoolbox.html#itemIcon)() ,可選[itemToolTip](qtoolbox.html#itemToolTip)() ,和一個[widget](qtoolbox.html#widget)( ) 。該項目的屬性可以與被改變[setItemText](qtoolbox.html#setItemText)( )[setItemIcon](qtoolbox.html#setItemIcon)()和[setItemToolTip](qtoolbox.html#setItemToolTip)( ) 。每個項目可以啟用或禁用單獨[setItemEnabled](qtoolbox.html#setItemEnabled)( ) 。 項目,采用加[addItem](qtoolbox.html#addItem)(),或者使用插入在特定位置[insertItem](qtoolbox.html#insertItem)( ) 。的總項數由下式給出[count](qtoolbox.html#count-prop)( ) 。項目可以用delete刪除,或從工具箱中刪除[removeItem](qtoolbox.html#removeItem)( ) 。結合[removeItem](qtoolbox.html#removeItem)()和[insertItem](qtoolbox.html#insertItem)()允許您將項目移到不同的位置。 目前項目widget的指數是由返回[currentIndex](qtoolbox.html#currentIndex-prop)( ),并設置用[setCurrentIndex](qtoolbox.html#currentIndex-prop)( ) 。特定項目的索引可以使用被發現[indexOf](qtoolbox.html#indexOf)( ) ,和一個給定的索引處的項目被退回[item](index.htm#item)( ) 。 該[currentChanged](qtoolbox.html#currentChanged)在當前項目改變( )信號被發射。 * * * ## Method Documentation ``` QToolBox.__init__ (self, QWidget?parent?=?None, Qt.WindowFlags?flags?=?0) ``` 該_parent_的說法,如果不是沒有,原因_self_通過Qt的,而不是PyQt的擁有。 構造一個新的工具箱給定的_parent_和標志,_f_。 ``` int QToolBox.addItem (self, QWidget?item, QString?text) ``` 該_item_說法有它的所有權轉移給Qt的。 添加_widget_在在工具箱的底部有一個新的選項卡。新標籤的文本設置為_text_和_iconSet_被顯示到的左_text_。返回新的選項卡的索引。 ``` int QToolBox.addItem (self, QWidget?item, QIcon?iconSet, QString?text) ``` 該_item_說法有它的所有權轉移給Qt的。 這是一個重載函數。 添加小工具_w_在在工具箱的底部有一個新的選項卡。新標籤的文本設置為_text_。返回新的選項卡的索引。 ``` QToolBox.changeEvent (self, QEvent) ``` 從重新實現[QWidget.changeEvent](qwidget.html#changeEvent)( ) 。 ``` int QToolBox.count (self) ``` ``` int QToolBox.currentIndex (self) ``` ``` QWidget QToolBox.currentWidget (self) ``` [ 返回一個指針,當前窗口小部件,或者0,如果不存在這樣的資料。 ](qwidget.html) [**See also**](qwidget.html) [currentIndex](qtoolbox.html#currentIndex-prop)()和[setCurrentWidget](qtoolbox.html#setCurrentWidget)( ) 。 ``` bool QToolBox.event (self, QEvent?e) ``` 從重新實現[QObject.event](qobject.html#event)( ) 。 ``` int QToolBox.indexOf (self, QWidget?widget) ``` 返回的索引_widget_,或-1,如果該項目不存在。 ``` int QToolBox.insertItem (self, int?index, QWidget?item, QString?text) ``` 該_item_說法有它的所有權轉移給Qt的。 插入_widget_在位置_index_,或在工具箱的底部,如果_index_超出范圍。新項目的文本設置為_text_和_icon_被顯示到的左_text_。返回新項目的索引。 ``` int QToolBox.insertItem (self, int?index, QWidget?widget, QIcon?icon, QString?text) ``` 該_widget_說法有它的所有權轉移給Qt的。 這是一個重載函數。 插入_widget_在位置_index_,或在工具箱的底部,如果_index_超出范圍。新項目的文本設置為_text_。返回新項目的索引。 ``` bool QToolBox.isItemEnabled (self, int?index) ``` 返回True如果在位置的項目_index_被啟用,否則返回False 。 ``` QIcon QToolBox.itemIcon (self, int?index) ``` [ 返回該項目的位置的圖標_index_如果,或者一個空圖標_index_超出范圍。 ](qicon.html) [**See also**](qicon.html) [setItemIcon](qtoolbox.html#setItemIcon)( ) 。 ``` QToolBox.itemInserted (self, int?index) ``` 后一個新的項目加入或位置插入這個虛擬處理器被調用_index_。 **See also** [itemRemoved](qtoolbox.html#itemRemoved)( ) 。 ``` QToolBox.itemRemoved (self, int?index) ``` 一個項目從位置移除后,此虛擬處理器被調用_index_。 **See also** [itemInserted](qtoolbox.html#itemInserted)( ) 。 ``` QString QToolBox.itemText (self, int?index) ``` 在位置返回項的文本_index_如果,或者一個空字符串_index_超出范圍。 **See also** [setItemText](qtoolbox.html#setItemText)( ) 。 ``` QString QToolBox.itemToolTip (self, int?index) ``` 返回該項目的工具提示的位置_index_如果,或者一個空字符串_index_超出范圍。 **See also** [setItemToolTip](qtoolbox.html#setItemToolTip)( ) 。 ``` QToolBox.removeItem (self, int?index) ``` 刪除位置的項目_index_從工具箱中。注意,該部件是_not_刪除。 ``` QToolBox.setCurrentIndex (self, int?index) ``` 這種方法也是一個Qt槽與C + +的簽名`void setCurrentIndex(int)`。 ``` QToolBox.setCurrentWidget (self, QWidget?widget) ``` 這種方法也是一個Qt槽與C + +的簽名`void setCurrentWidget(QWidget *)`。 品牌_widget_當前的窗口小部件。該_widget_必須在此工具框中的項目。 **See also** [addItem](qtoolbox.html#addItem)( )[setCurrentIndex](qtoolbox.html#currentIndex-prop)()和[currentWidget](qtoolbox.html#currentWidget)( ) 。 ``` QToolBox.setItemEnabled (self, int?index, bool?enabled) ``` If _enabled_為真,則在位置的項目_index_被啟用,否則在位置的項目_index_被禁用。 **See also** [isItemEnabled](qtoolbox.html#isItemEnabled)( ) 。 ``` QToolBox.setItemIcon (self, int?index, QIcon?icon) ``` 設置項的位置的圖標_index_至_icon_。 **See also** [itemIcon](qtoolbox.html#itemIcon)( ) 。 ``` QToolBox.setItemText (self, int?index, QString?text) ``` 設置項處位置的文本_index_至_text_。 如果提供的文字包含符號字符( '&' ) ,助記符會自動為它創建。后面的“&”將被用來作為快捷鍵的字符。任何先前的記憶將被復蓋,或者如果沒有助記符由文本定義清除。請參閱[QShortcut](qshortcut.html#mnemonic)有關詳細信息的文檔(顯示的實際符號,使用“\u0026\u0026” ) 。 **See also** [itemText](qtoolbox.html#itemText)( ) 。 ``` QToolBox.setItemToolTip (self, int?index, QString?toolTip) ``` 設置項的位置的工具提示_index_至_toolTip_。 **See also** [itemToolTip](qtoolbox.html#itemToolTip)( ) 。 ``` QToolBox.showEvent (self, QShowEvent?e) ``` 從重新實現[QWidget.showEvent](qwidget.html#showEvent)( ) 。 ``` QWidget QToolBox.widget (self, int?index) ``` [ 返回小部件位置_index_或0,如果不存在這樣的資料。 ``` QToolBox.__len__ (self) ``` * * * ## Qt Signal Documentation ``` void currentChanged (int) ``` 這是該信號的默認超載。 在當前項目改變這個信號被發射。新的當前項目的索引是通過在_index_,或-1,如果沒有當前項目。 ](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>

                              哎呀哎呀视频在线观看